Reputation: 574
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?
Upvotes: 5
Views: 7200
Reputation: 734
Presentation style is Automatic which defaults to pagesheet in iOS 13 when you present a viewcontroller modally
Upvotes: 1
Reputation: 3727
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/
Upvotes: 1
Reputation: 3157
Upvotes: 10