Home > database >  How to draw the layout below the notch
How to draw the layout below the notch

Time:08-16

My app stretches through the whole screen of the device. How can I set it to stretch only to the notch area? Ideally, in all screen orientations.

I'm using Objective-C, and Storyboard for the layout.

Thanks for any help. Cannot find the proper documentation, if someone can point me to the correct direction, that would be great.

CodePudding user response:

The area that you refer to below the notch is called 'safe area'. You can change the top of the view to confine it into the safe area. Refer: https://stackoverflow.com/a/47076040/19425375

  • Related