user717452
user717452

Reputation: 111

Safe Area Guide Not Appearing in Xcode

I use XIB in most of my apps instead of Storyboards. As you can see from the picture, I have Safe Area Layout Guide enabled as well as Auto Layout, but for some reason, my XIB still shows top and bottom layout guide instead of safe area. What am I missing? Ok, I changed to update recommended settings. It still doesn't show Safe Area in the XIB file, but the app itself does seem to be respecting safe area. Does this like the proper way this is supposed to be done?

enter image description here

enter image description here

enter image description here

enter image description here

Upvotes: 7

Views: 4751

Answers (2)

Tommy newbie
Tommy newbie

Reputation: 1

Same thing happened to me even if File Inspector shows "Use safe area layout guides" is checked.

I just unchecked "Use safe area layout guides", cleared the constraints, CHECKED back "use safe area layout guides", re-add constraints. Safe area is back.

Upvotes: 0

omerx
omerx

Reputation: 201

Check on "Use Safe Area Layout Guides" from the file inspector.

File inspector

Upvotes: 18

Related Questions