RayWenderlich.com Layout in IOS Course - Part 4

Here we go! So the course is split into Swift UKit. Interface builder. Let's do this!

Start Time - 20:32

Introduction

About half an hour tonight I reckon.

Translates masks into constraints - apparently this is the option to use.

So the whole point of Auto Layout is so you can fit onto any device.

Stack views are coming here too.

Autoresizing

Fixed attribute will not change.

OK, a key point here is that the content is all on an older Xcode - Xcode 11. So the features are all quite different. Trying to follow along still!

Ok, can't even find size inspector! No point doing this on this earlier version of Xcode. So skimming through instead.

I get the concept of all of this. The use of constraints etc.

Autoresizing mask - flexibilities. All of the different options!

Stack Views

OK I've found some of the main views again! Out of practice with Swift UIKit!

Stack view is non-rendering. That means non visible. Not even a background.

Spacing is an attribute for the stack views. Alignment shows how they should be arranged - centrally or at the top etc.

Cool, all the stack view makes sense so far. It is great for using multiple objects that you want lined up and spaced out neatly.

Challenge

This is what I need to make! Last thing for now!



Here's what I made - two stack views! I changed the text to make it more interesting.



Finish Time - 21:10 (38 minutes total)

Some good stuff here. Although the layout on Xcode is different, I can still play around with the values and options. 

Comments

Popular posts from this blog

*Xcode Project Entry 2* F1 Quiz - part 1

Angela Yu Course Part 10 (up to lesson 112)

Angela Yu Xcode 12 Course - Part 7 (lectures 74 to 79)