This is part of the "iOS User Interfaces" learning path. View Path

UIKit: Layout

Nov 12 2020 · Video Course (1 hr, 8 mins) · Beginner

Learn the basics of creating layouts that handle different screen sizes and orientations, using Auto Layout's Stack Views and Constraints, in Interface Builder.

5/5 1 Rating

Version

  • Swift 5.3, iOS 14, Xcode 12

Stack Views

Introduction

2:54 Free

Welcome to the course! Get an introduction to what Auto Layout is and why you need to use it in your apps.

1

Autoresizing

6:53 Free

Autoresizing (a “mask of flexibilities”) is the predecessor to Auto Layout. It’s simpler, and occasionally, for prototyping, effective.

2

Create your first stack view and learn about some basic properties to adjust the layout.

3

Use everything you’ve learned about Stack Views so far to recreate a few simple view layouts from reference images.

4

What is Intrinsic Content Size? Find out how Auto Layout uses the intrinsic size of a view to determine layout.

5

Stack views inside of stack views! Unlock more power of stack views by nesting them to create complex layouts.

6

Learn about the options for stack view alignment and distribution and how they work to arrange your views.

7

Practice everything you’ve learned so far about stack views by implementing a complex, nested layout.

8

Conclusion

0:26

Review what you’ve learned in this section and find out what’s coming up next.

9

Constraints

Get a solid introduction to Auto Layout constraints, and find out what you’ll learn in this section.

10

The Add New Constraints UI in Interface Builder packs a whole lot of Auto Layout power into a compact popup.

11

Right- or control-click dragging between two views is another great option for creating Auto Layout constraints.

12

Convert the type of your stack view constraints, getting practice with Auto Layout while gaining more control over the stack view’s width.

13

This is an overview of the UI that Xcode offers for editing constraints that have already been created.

14

Just like with Swift, you’ll get into temporary, problematic states when working in Interface Builder, before your constraints are ready. Let’s solve a few!

15

Conclusion

1:55

Review what you’ve learned in this part, and pick up some parting tips for using Auto Layout in your apps.

16

Who is this for?

This course is part of our iOS User Interfaces with UIKit learning path. You're ready for this course if you're working through that learning path in order, or you're someone who has a bit of iOS and Swift experience: enough to know the basics of putting views onscreen in a UIKit-based app.

The basics of Auto Layout in UIKit, UIStackView and constraints, are covered here. You'll also come to understand Auto Layout's simple predecessor, Autoresizing.

Throughout the course, you'll practice everything you learn with hands-on challenges, recreating the kind of scalable layouts you'll find in popular iOS apps.

This course isn’t suited for advanced developers. If that’s you, check out our advanced video courses for more ways to level-up your developer skills!

Covered concepts

  • UIKit Stack Views
  • Interface Builder
  • Intrinsic Content Size
  • Auto Layout Constraints
  • Autoresizing

Contributors

Comments