iOS 13 presentation style default

2020-04-18 06:32发布

In my iOS app I have about 60 present(_:animate:complition) calls from legacy code.

iOS 13 just changed the default presentationStyle to Automatic which actually means .formSheet style.

Is there a quick way to change the default back to .fullScreen on all the app? maybe like in the infoPlist or some global protocol like UIAppearance Protocol? If there's no way i need to set the presentationStyle manually in 60 places...

1条回答
老娘就宠你
2楼-- · 2020-04-18 06:50

Unfortunately there is no global variable to override to change this. This is all part of updating for the new OS's! Embrace the change, and change them all manually. This helps with code management and future proofing the app too. A small headache now which can help in the long run.

查看更多
登录 后发表回答