Upgrade to Pro — share decks privately, control downloads, hide ads and more …

iOS Views & Animations: Learning by stealing

sammyd
October 11, 2018

iOS Views & Animations: Learning by stealing

Making your apps look and feel fantastic is a big part of creating top-notch user experience. Since we know that great artists steal, one of the best ways to improve your skills is to recreate things you love in other apps. In this talk, we'll do exactly that. We'll take two or three great pieces of UI and work out how to recreate them. This will give us a great opportunity to spelunk across multiple frameworks, such as Core Animation, and to discover techniques we can use to recreate some great UI flourishes. By the end of this talk you'll have learnt at least two things, one of which will be of some use to you.

sammyd

October 11, 2018
Tweet

More Decks by sammyd

Other Decks in Programming

Transcript

  1. override func hitTest(_ point: CGPoint, with event: UIEvent?) -> UIView?

    { let hit = super.hitTest(point, with: event) if hit != self { return hit } for passthroughView in passthroughViews { let hit = passthroughView.hitTest( convert(point, to: passthroughView), with: event) if hit != .none { return hit } } return .none } @iwantmyrealname