~/talk

iOS Animations with Auto Layout

Talkat GOTO Copenhagen 2015 · 2015-10-05..10-06· [ios]
slides:none on file

Explains how to animate Auto Layout by actually changing constraints and letting UIKit animate position/size: make an NSLayoutConstraint IBOutlet, change its constant or deactivate old constraint and add new one with a different multiplier, then call layoutIfNeeded() inside an animation block (can use spring). Shows failure case where moving view.center is undone by a relayout when keyboard appears, demos resizing a top bar, and using UIStackView’s arrangedSubviews.hidden toggle to animate layout — all examples work.

AI-written summary · about

  1. 0:00Introduction
  2. 1:04Why animations matter
  3. 6:20Auto Layout animation pitfalls
  4. 12:02How Auto Layout works
  5. 18:31Auto Layout animation techniques
  6. 21:04Animating constraints with outlets
  7. 28:12Changing multipliers dynamically
  8. 37:16Auto Layout animation takeaways
  9. 37:59Introducing stack views
  10. 44:03Adaptive layouts with stack views
  11. 47:37Animating stack views
  12. 50:12Summary
~/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.