Learn about AutoLayout and how to use stack views and constraints to create pixel-perfect UIs.
Overview
Syllabus
- Introduction to AutoLayout
- In this lesson, you will learn what problems AutoLayout solves and why you can't afford to ignore it any longer.
- Using AutoLayout
- In this lesson, you will learn about the 4 different ways of implementing AutoLayout, which one we recommend you use, and why. You also will delve deeper into the recommended way: UIStackViews.
- View Properties used by AutoLayout
- AutoLayout uses 3 properties that all views share: intrinsicContentSize, compressionResistence and contentHugging. Don't be put away by the weird names! It's actually pretty simple, and in this lesson, you'll learn all about them.
- Beginning StackViews
- In this lesson, you will learn about 4 properties of StackViews that define its apparently weird behavior. Once you're done with this lesson, you will understand there's a logic to StackViews, and a lot of power too.
- Positioning Views & Constraints
- In this lesson, your will learn what a constraint is and well as the role of constraints in AutoLayout.
- Horizontal Layouts
- In this lesson, we will create simple horizontal layouts. These will be building blocks for more complex layouts.
- Vertical Layouts
- In this lesson, we will take composition and vertical layouts to the next step and use them to create more complex layouts.
Taught by
Fernando Rodriguez