Safe area relative margins - my trailing margins don't match the book

I went through the steps from pp 357-9, and my trailing margins don’t match Figure 17.10:

Did anyone else see this?

1 Like

Update: I had all kinds of issues with Main.storyboard, even after a second attempt.

I ended up copying/pasting the Solutions version into my Project directory.

Yes this caused me all kinds of pain.
The fix is to change the Stack View trailing Constraint.
Mine was set to “trailing = Stack View.trailingMargin”
Click on it and then in the Size Inspector, click on the “Superview.Trailing” and then check “Relative to margin”

2 Likes

Thank you for suggesting the solution. In my case, I had to update the constant to zero for it to work.

Hi, I was having trouble with the earlier step of adding constraints to the Visual Effect View with Blur. The align menu was grayed out for leading, trailing and bottom. Here is a picture
bnrChap17visualEffectViewWithBlur

Based on @tstarback post, I followed suit and edited the constraints from the Size Inspector to match what was in the solution. Thank you.

If anyone knows why my align options to set trailing, leading and bottom were grayed out I would be grateful to understand.

I suggest you to visit onlyfans app.