Auto Layout – From Trailing to Leading

Mischa Hildebrand
iOS Developer at Kupferwerk, Germany
Auto Layout is a powerful tool to make user interfaces adaptive. But: It’s not as simple as it looks. You never really know what’s going on behind the scenes and sometimes you get results at runtime other than you expected.
The only way to dismantle this "magic" is to develop a deep understanding of the layout process, including the mathematics behind the constraints: How does the system compute the view frames from our constraints? What’s the intrinsic content size and the compression resistance / content hugging? Why do we need constraint priorities? How do we force a layout pass? This talk will give you all the answers – with little code and lots of beautiful animations.

About speaker

Mischa has always been passionate about two things that don’t seem to have much in common: logic and creativity. He graduated in physics to discover the first and worked as a radio reporter for a couple of years to try out the latter. Today he works at intive Kupferwerk, a software agency based in Munich, where he combines both his passions as an iOS developer. Mischa tries to learn something new about Swift everyday and loves creating modular, adaptive user interfaces with Auto Layout. His favorite question: “Why?”
All topics