ControllerSheetPresentationOptions
public struct ControllerSheetPresentationOptions
A model providing configuration options for UIKit sheet presentations.
-
Used to set the
UIModalPresentationStyle
of a presented controller.Declaration
Swift
public var presentationStyle: UIModalPresentationStyle?
-
Used to set the
UIModalTransitionStyle
of a presented controller.Declaration
Swift
public var transitionStyle: UIModalTransitionStyle?
-
Provides a
UIViewControllerTransitioningDelegate
object to be used for custom presentation transitions.Note
This holds a weak reference to the delegate object, so you should save a reference to this object until the transition is complete.Declaration
Swift
public weak var transitionDelegate: UIViewControllerTransitioningDelegate?
-
Used to determine whether the sheet controller should be animated when being presented.
Declaration
Swift
public var isAnimated: Bool
-
A closure used for configuring a
UISheetPresentationController
before the sheet is presented.Declaration
Swift
public var configurationClosure: SheetPresentationControllerConfigurationClosure?
-
The initializer.
Declaration
Swift
public init(presentationStyle: UIModalPresentationStyle? = nil, transitionStyle: UIModalTransitionStyle? = nil, transitionDelegate: UIViewControllerTransitioningDelegate? = nil, isAnimated: Bool? = nil, configurationClosure: SheetPresentationControllerConfigurationClosure? = nil)
Parameters
presentationStyle
Sets the
UIModalPresentationStyle
of a presented controller.transitionStyle
Sets the
UIModalTransitionStyle
of a presented controller.transitionDelegate
Provides a
UIViewControllerTransitioningDelegate
object to be used for custom presentation transitions.isAnimated
Determines whether the sheet controller should be animated when being presented.
configurationClosure
A closure used for configuring a
UISheetPresentationController
before the sheet is presented.