Contents

delegate

The delegate object for managing adaptive presentations.

Declaration

weak var delegate: (any UIAdaptivePresentationControllerDelegate)? { get set }

Discussion

When the app’s size changes, the presentation controller works with this delegate object to determine an appropriate response. View controllers presented using the UIModalPresentationStyle.formSheet, UIModalPresentationStyle.popover, or UIModalPresentationStyle.custom style must change to use one of the full-screen presentation styles instead. The delegate can also opt to change the presented view controller entirely.

The object you assign to this property must conform to the UIAdaptivePresentationControllerDelegate protocol.

See Also

Adapting your presentations dynamically