4

I've been updating my app to so it can work in iOS 10, 11 and the new iPhone X. I don't use Storyboards, and I've noticed that when using the new safe area guides, everything works as expected on any device that runs iOS 11. However, in iOS 10, it seems that the safe area guides are not being converted to the previous layout guides.

Here's a simple example with just a view aligned to the top, left and right safe area margins:

This is what happens when using xib:

enter image description here

And with storyboard:

enter image description here

I have noticed that two people had similar enter link description here in enter link description here and in the Apple Forums but the solutions are hacky and are trying to fight the underlying framework. Is there any oficial solution to this?

Jorge Costa
  • 249
  • 2
  • 6
  • 1
    Man it is Apple. In iOS 10 safe area is not broken - it doesn't even exist in iOS <11. And they are lying - I have storyboard and have the same issues – Vyachaslav Gerchicov Oct 23 '17 at 13:26

0 Answers0