As per apple documentation,
The default value for this property is UIModalPresentationStyle.automatic
In iOS 12, the default value was UIModalPresentationStyle.fullScreen, and that what I get.
But when I am running my app on iOS 13 I am getting .pageSheet as navigationController.modalPresentationStyle
Is there anything I am doing wrong or the default value is .pageSheet?
The default value for this property is UIModalPresentationStyle.automatic.
The default presentation style chosen by the system. It's
UIModalPresentationAutomatic
Automatic means if we using UIImagePickerController
and sourceType .photoLibrary
then it's present as cascade view. And sourceType .camera
then it's present in full screen.
https://developer.apple.com/videos/play/wwdc2019/224/
https://developer.apple.com/documentation/uikit/uimodalpresentationstyle/uimodalpresentationpagesheet?language=objc
Presentation style is Automatic which defaults to pagesheet in iOS 13 when you present a viewcontroller modally
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With