Reputation: 111
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?
Upvotes: 7
Views: 4751
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