Hello everyone !
We've observed with our team that the default value of the modalPresentationStyle for an UIViewController has changed on iOS 18/XCode 16.
We've made a small playground to test it
import UIKit
var navigationController = UINavigationController()
navigationController.modalPresentationStyle = .automatic
navigationController.modalPresentationStyle.rawValue
The rawValue of the modalPresentationStyle on XCode 15 was 1, so the value of .pageSheet
, which is okay since it is the default value specified in the documentation.
Since Xcode 16 this value has changed to 2 which is the value of .formSheet
.
Did this change in particular has been specified anywhere by Apple ? The closest thing I've been able to find is the new .presentationSizing
for sheets in SwiftUI but I have not found anything for UIKit.
Thank you very much for your time !
@yann_b691 You are correct, the default behaviour did change. Please file an enhancement request, using Feedback Assistant to get the documentation updated and post the Feedback Number so I can follow up with it. Thanks