Contents

sheetPresentationController

The sheet presentation controller for the view controller.

Declaration

var sheetPresentationController: UISheetPresentationController? { get }

Discussion

If modalPresentationStyle is UIModalPresentationStyle.pageSheet or UIModalPresentationStyle.formSheet, this property contains a sheet presentation controller instance. Access this instance to customize or adjust the sheet before or after it presents.

If modalPresentationStyle has a value other than UIModalPresentationStyle.pageSheet or UIModalPresentationStyle.formSheet, the value of this property is nil.

See Also

Adding a custom transition or presentation