Skip to content

Latest commit

 

History

History

Project-06-B-AutoLayout

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Project 6B - Auto Layout

This project includes solutions to the challenges.

Challenges

  1. Try replacing the widthAnchor of our labels with leadingAnchor and trailingAnchor constraints, which more explicitly pin the label to the edges of its parent.
  2. Once you’ve completed the first challenge, try using the safeAreaLayoutGuide for those constraints. You can see if this is working by rotating to landscape, because the labels won’t go under the safe area.
  3. Try making the height of your labels equal to 1/5th of the main view, minus 10 for the spacing. This is a hard one, but I’ve included hints below!

Screenshots

Light Mode

Dark Mode

No screenshots provided (due to poor contrast of label colors).