I have a view controller presented from a segue modally. Its presentation style is set to Form Sheet.
func adaptivePresentationStyle(for controller: UIPresentationController, traitCollection: UITraitCollection) -> UIModalPresentationStyle {
return .formSheet
}
override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
segue.destination.presentationController?.delegate = self
}
On iPhone X and iPhone 8 Plus it works as expected, on iPhone Xs Max and Xr the width of the controller is respected, but the height is wieredly stretched. I have no way of confirming if this is simulator bug, iOS bug or expected behaviour as I don't have Xs Max myself.