How I Learned To Stop Worrying and Love Autolayout
summary
Shows concrete Xcode demos using Interface Builder and Auto Layout: a sample app of nested stack views inside a scroll view with collapsible sections driven by toggling hidden (works with simple UIView animations), explains size classes and Xcode 9 safe area, details debugging tips like setting a symbolic breakpoint and naming constraints via constraint identifiers, explains content hugging vs compression resistance numbers, recommends breaking large storyboards, using nibs for shared views, and warns about merge conflicts and over-constraining.
AI-written summary · about
chapters (20)
- 0:00Intro
- 2:03What is Autolayout
- 2:52What not to do
- 4:07Thirdparty frameworks
- 4:52Xcode warnings
- 5:55Over constraining
- 7:53Massive Storyboard Syndrome
- 8:33Storyboard References
- 11:28Debugging
- 12:20What Xcode tells you
- 13:26Track down the offenders
- 17:45Constraint IDs
- 19:32Content Hugging Compression Resistance
- 20:24Xcode Demo
- 27:28Stack View Hierarchy
- 28:16Horizontal Stack View
- 29:05Stack View Properties
- 34:07Stack View Animation
- 37:03Size Classes
- 40:23Final Thoughts
related talks
37mConstraintLayout deep dive
41mWhen You Can’t Go All In On SwiftUI, Build a Hybrid UI App Instead!
26mThe SwiftUI Mindset: 5 Key Ideas to Avoid Common Pitfalls
17mMastering SwiftUI Previews: How the Project Structure can hel
30mThe Lost Art of System Design
50mLet's Design UI the Right Way
40mMobiconf 2018: John Sundell, Swift by Sundell
38mWhy is Adaptive Layout a Nightmare?
