iPhone X - Safe Area does not achieve full-screen experience?

后端 未结 4 461
北荒
北荒 2021-01-17 15:17

The new HIG for iPhone X available here, specify: \"Provide a full-screen experience. Make sure backgrounds extend to the edges of the display, and that vertically scrollabl

相关标签:
4条回答
  • 2021-01-17 15:39

    Actually I believe the answer is this: to accomplish full screen we should NOT use safe area support. After I unchecked Safe Area Relative Margins and Safe Area Layout Guide on the view in Interface Builder Size Inspector I got the expected result:

    In fact I would say that the idea of Safe Area is that of an area which will for sure not be overlapped by any of the system icons, or rounded borders, full screen is the opposite of it.

    0 讨论(0)
  • 2021-01-17 15:46

    I solved problem by setting top and bottom like this. xcode version is 11.6

    0 讨论(0)
  • 2021-01-17 15:53

    Just change your bottom constraint First Item to SuperView

    0 讨论(0)
  • 2021-01-17 16:01

    This answer is simple and worked for me .. follow these sequences:

    1- select the background image and open constraints window

    2- uncheck constrain to margins

    3- as in picture : select (View) not (safe area) from the small arrow in the corner of edit value rectangle .. apply this for all 4 values

    4 - enter value 0 for all 4 values and hit Enter

    and Done

    0 讨论(0)
提交回复
热议问题