~/talk

SwiftUI Animations Under The Hood

Talkat #Pragma Conference 2024 · 2024-10-29..10-30· [web-animation]
slides:none on file

Builds a toggle and a shaker to demonstrate how SwiftUI turns state changes into per-property interpolations, and shows a prototype render tree visual debugger (unreleased Instruments) that highlights animatable properties in italics. Demonstrates that .animation applies to leaf-view animatable properties (position, size, fill), that moving .animation changes scope, and that a custom animatableData shake modifier emits per-frame float values over a 3s animation (printed intermediate values), proving the approach works; also covers interruptible animations, transitions (opacity+scale), and QuickTime frame-by-frame debugging.

AI-written summary · about

  1. 0:00Introduction
  2. 1:08SwiftUI animations overview
  3. 3:22Building a toggle control
  4. 5:12What does it mean to animate
  5. 7:00Understanding the render tree
  6. 10:13Animating multiple properties
  7. 11:36Dot animation scope explained
  8. 14:31Implicit animations with scale
  9. 16:56Animating view insertion and removal
  10. 21:26Animating from state to state
  11. 22:29Creating a shake animation
  12. 27:03Custom animatable modifiers
  13. 28:47Phase animators and key frames
  14. 29:33Q&A session
~/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.