This project includes solutions to the challenges.
- Try replacing the
widthAnchor
of our labels withleadingAnchor
andtrailingAnchor
constraints, which more explicitly pin the label to the edges of its parent. - 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. - 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!
No screenshots provided (due to poor contrast of label colors).