In this episode, I'd like to take a moment to discuss the anatomy of a constraint, the fundamental building block of a user interface driven by Auto Layout. Remember that user interfaces created with Auto Layout define constraints. The constraints describe the relationships between the views in the user interface. The Auto Layout engine then inspects these constraints and calculates the frame of every view in the view hierarchy.
Subscribe to Cocoacasts Plus to watch this episode.
Auto Layout Fundamentals
Anatomy of a Constraint
by Bart Jacobs in Auto Layout
Swift 4
Xcode 9
iOS 11
Auto Layout Fundamentals
-
05:17
-
4 Anatomy of a Constraint
03:20
-
7 What Is Intrinsic Content Size
06:46
-
05:20
-
06:53
-
12 Best Practices and Common Pitfalls
05:45