Learn Swift and iOS Development
Master iOS development through in-depth tutorials and comprehensive courses on Swift, SwiftUI, UIKit, Core Data, and more.
Master iOS development through in-depth tutorials and comprehensive courses on Swift, SwiftUI, UIKit, Core Data, and more.
5:45
I'd like to end this series with a few tips and best practices for using Auto Layout in your projects. Along the way, I'll also point out common pitfalls when using Auto Layout and how to avoid them.
in Auto Layout
6:53
In this episode, I want to spend a few minutes talking about a special class that was introduced in iOS 9 and tvOS 9, UIStackView. Even though UIStackView is a UIView subclass, the stack view itself is not rendered. Only its contents are rendered to the screen. That's the first important feature of the UIStackView class.
in Auto Layout
5:20
In this episode, I'd like to take a minute to discuss layout guides. While there are several layout guides, the ones I discuss in this episode are the top layout guide, the bottom layout guide, and the safe area layout guide. The top and bottom layout guide are deprecated as of iOS 11 and tvOS 11. They have been replaced with the brand new safe area layout guide.
in Auto Layout
5:47
In the previous episode, I showed you how to create constraints in Interface Builder. This episode zooms in on the tools Interface Builder provides us with to work with constraints.
in Auto Layout
8:02
You already know quite a bit about Auto Layout. It's time to learn more about working with constraints in Interface Builder.
in Auto Layout
6:46
In this episode, we take a close look at another important concept of Auto Layout, intrinsic content size. We first take a moment to discover what intrinsic content size is. Later in the episode, we also touch upon content hugging and content compression resistance, two concepts that drive user interfaces created with Auto Layout.
in Auto Layout
3:50
In this episode, we take a look at implicit and explicit constraints. It's a topic worth covering because it frequently trips up developers new to Auto Layout.
in Auto Layout
6:45
This episode zooms in on constraints, priorities, and satisfiable layouts. For this episode, we revisit the project we created earlier in this series.
in Auto Layout
3:20
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.
in Auto Layout
4:41
In this episode, we get our feet wet by creating a very basic user interface using Auto Layout. I'm going to use Xcode 9 in this episode, but Xcode 8 should work just as well.
in Auto Layout
5:17
Before I discuss the benefits of Auto Layout, I'd like to take a moment to discuss the options you have for creating user interfaces on iOS. Every view in the view hierarchy of a user interface needs to have a size and a position.
in Auto Layout
1:57
Welcome to Auto Layout Fundamentals. In this series, you'll learn about the fundamental concepts that power Auto Layout. At the end of this series, you'll have a solid understanding of Auto Layout and how you can use it in your projects.
in Auto Layout
Interface Builder makes it very easy to create user interfaces that are driven by Auto Layout. Adding, editing, and deleting constraints is a breeze in Interface Builder. But sometimes you need to work with Auto Layout in code.
in Auto Layout
Creating layout constraints in code is not pretty. It is not always intuitive and it is verbose, even if you decide to use Apple's Visual Format Language.
in Auto Layout
In this tutorial, I zoom in on prototyping constraints, a concept that frequently confuses developers new to Auto Layout. But before we can discuss prototyping constraints, we need to understand the difference between implicit and explicit constraints.
in Auto Layout
Intrinsic content size is a concept that many developers confuses or, even worse, don't know about. In this tutorial, you learn what intrinsic content size is and how you can use it to your advantage when creating layouts that are powered by Auto Layout.
in Auto Layout
If you plan to build an iOS application that look great on any device, then Auto Layout is your only viable option. The user interface of modern iOS applications is driven by Auto Layout and Apple continues to improve and invest in Auto Layout with every iteration of the platform.
in Auto Layout
Before discussing the benefits of Auto Layout, we need to take a moment to discuss the options you have to create user interfaces on iOS.
in Auto Layout