Weekly bite-sized screencasts on iOS development.

There are 4 episodes with tag 'autolayout'   Clear search

SnapKit

Episode #233 | 18 minutes | published on 08/25/2016
Subscribers Only
Writing Autolayout constraints from code can be quite tedious. SnapKit, the Swift-friendly successor to Masonry, is a friendly DSL that allows creating and updating constraints easy and readable. In this episode we use SnapKit to build out a simple interface mockup using Autolayout completely in code.

Auto Layout in Code

Episode #133 | 18 minutes | published on 08/21/2014
Subscribers Only
In this episode we take a look at how to set up auto layout constraints in code, rather than with Interface Builder / Storyboards. Whether you prefer to work in code or storyboards to lay you user interfaces, often times setting things up in code is required. You'll see how to use NSLayoutConstraint to fully specify a layout, and hopefully understand a bit more about how auto layout works.

Visual Format Language

Episode #134 | 13 minutes | published on 08/28/2014
Subscribers Only
In this episode we explore Apple's Visual Format Language for building Auto Layout Constraints. While a bit strange at first glance, the Visual Format Language can really convey a lot of layout information in just a few characters in comparison to the manual building of NSLayoutConstraints can be.

Animating Constraints

Episode #135 | 15 minutes | published on 09/04/2014
Subscribers Only
What good is a static layout? When specifying layout using constraints, we still need to provide transitions and other animations in our interfaces. We can do this quite easily by just animating between different sets of constraints.