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 .presentationSizingfor sheets in SwiftUI but I have not found anything for UIKit.
Thank you very much for your time !
Topic:
UI Frameworks
SubTopic:
UIKit