ControllerSheetPresentationOptions
public struct ControllerSheetPresentationOptions
A model providing configuration options for UIKit sheet presentations.
-
Used to set the
UIModalPresentationStyleof a presented controller.Declaration
Swift
public var presentationStyle: UIModalPresentationStyle? -
Used to set the
UIModalTransitionStyleof a presented controller.Declaration
Swift
public var transitionStyle: UIModalTransitionStyle? -
Provides a
UIViewControllerTransitioningDelegateobject 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
UISheetPresentationControllerbefore 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
presentationStyleSets the
UIModalPresentationStyleof a presented controller.transitionStyleSets the
UIModalTransitionStyleof a presented controller.transitionDelegateProvides a
UIViewControllerTransitioningDelegateobject to be used for custom presentation transitions.isAnimatedDetermines whether the sheet controller should be animated when being presented.
configurationClosureA closure used for configuring a
UISheetPresentationControllerbefore the sheet is presented.
View on GitHub