~/talk

Better CoreAnimation Using Swift Playgrounds

Talkat 360|iDev 2016 · 2016-09-14..09-17· [web-animation]
links:none on file
slides:none on file

Claim: using Swift playgrounds and PlaygroundSupport makes CoreAnimation iteration exponential faster. Concrete demos show CA layers, CAEmitterLayer particle systems, CAReplicatorLayer spinners, animating CAShapeLayer paths and glyph outlines, and saving rendered images via the shared playground data folder using UIGraphicsImageRenderer. Notes: set parent layer m34 for believable 3D, use Measurement to convert degrees to radians, drive updates with CADisplayLink. Results: prototypes run on the GPU at ~60 Hz on device, simulator is slower; examples (replicator count 10, birthRate 2, lifetime ~10s) work and are cheap.

AI-written summary · about

  1. 0:00Start
  2. 1:32The foundation of all our playgrounds
  3. 2:54Preparing for a vignette
  4. 4:49Add the sublayer, and set up colors
  5. 5:32Add the gradient to the main image
  6. 6:24Add attribution text
  7. 7:37From here on out, we will use emoji
  8. 8:12Emoji give us many shortcuts
  9. 9:08Add an icon to the layer
  10. 9:51Add a 3D transform
  11. 12:14Working with basic shapes
  12. 13:39Animate the opacity
  13. 14:22Animate the shape, too!
  14. 15:07You can use fonts to create paths, too.
  15. 15:22Make a method to do this.
  16. 16:16An awful lot of trouble to render one character...
  17. 16:26But "path" is animatable!
  18. 17:52To rotate around vertical axis, set transform on "y"
  19. 18:47Need to set subtransform on host layer
  20. 20:42New "Measurement" foundation to the rescue!
  21. 23:21Create a custom spinner
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.