How to extend bottom view colour below the home indicator in iPhone X?

前端 未结 3 502
生来不讨喜
生来不讨喜 2020-12-24 08:41

Please check the attached image. The Viewcontroller\'s view\'s background colour is blue. This colour extends below the status bar and below the home indicator as you can se

3条回答
  •  攒了一身酷
    2020-12-24 09:00

    You need to set/attach bottom constraint of you white view with super view.

    Follow these steps and see:

    • Check bottom/bottom alignment constraint of your view. It may be attached with bottom anchor/constraint of safe area.


    • (To edit it) Double click on Bottom constraint, which will show you following options.
    • Now change selection (tick mark) from safe area to super view.


    • set constant to 0 if not.


    • Here is result, that you may want.

提交回复
热议问题