UIKit: Layout

Nov 12 2020 Swift 5.3, iOS 14, Xcode 12

Part 1: Stack Views

2. Autoresizing

Lesson Complete

Play Next Lesson
Next
Save for later
About this episode
See forum comments
Cinema mode Mark as Complete Download course materials
Previous episode: 1. Introduction Next episode: 3. Stack Views

Autoresizing is very much legacy technology. You will learn how to use constraints to make your layouts more flexible later in the course, but to keep things working as demonstrated in this episode:

  1. Make sure your “View as” device in Interface Builder matches the simulator you are building to.
  2. When you make changes to the stack views settings (at 6:30), switch the stack view’s “Layout” setting in the size inspector to “Inferred” and then back to “Autoresizing” to get the right results.

This course was originally recorded in 2018. It has been reviewed and all content and materials updated as of October 2020.