Presenting modal in iOS 13 fullscreen

后端 未结 30 2080
囚心锁ツ
囚心锁ツ 2020-11-21 06:48

In iOS 13 there is a new behaviour for modal view controller when being presented.

Now it\'s not fullscreen by default and when I try to slide down, the app just dis

30条回答
  •  爱一瞬间的悲伤
    2020-11-21 07:11

    Initially, the default value is fullscreen for modalPresentationStyle, but in iOS 13 its changes to the UIModalPresentationStyle.automatic.

    If you want to make the full-screen view controller you have to change the modalPresentationStyle to fullScreen.

    Refer UIModalPresentationStyle apple documentation for more details and refer apple human interface guidelines for where should use which modality.

提交回复
热议问题