UIViewController custom transition stuck on iOS13

前端 未结 4 2069
长发绾君心
长发绾君心 2021-02-05 11:42

I\'ve implemented a custom transition between two view controllers in my iOS app and it worked fine with iOS 10, 11, and 12.

Now I want make it ready for iOS 13 using Xc

4条回答
  •  情深已故
    2021-02-05 11:56

    The answer above is correct to set modalPresentationStyle to .fullScreen, however it is also worth to mention that if your view controller is embedded in a UINavigationController, you need to set it on the navigation controller:

    navigationController.modalPresentationStyle = .fullScreen
    

提交回复
热议问题