Safe area in hibs damaged in iOS 10 [Avoid hacks]

I am updating my application so that it can work in iOS 10, 11 and the new iPhone X. I do not use storyboards, and I noticed that when using the new safe area guides, everything works as expected on any device running iOS 11. However, in iOS 10, it seems that the safe area guides do not translate into previous layout guides.

Here is a simple example, only with the view aligned with the margins of the top, left and right safe areas:

This is what happens when using xib:

enter image description here

And with the storyboard:

enter image description here

, Apple, . - ?

+4

Source: https://habr.com/ru/post/1686226/


All Articles