PresentModallyAction
@MainActor
public struct PresentModallyAction : Action
Presents a view controller modally
-
A starting point in the modal presentation
See moreDeclaration
Swift
public enum ModalPresentationStartingPoint
-
A starting point in the modal presentation
Declaration
Swift
@MainActor public let presentationStartingPoint: ModalPresentationStartingPoint
-
UIModalPresentationStyle
settingDeclaration
Swift
@MainActor public let presentationStyle: UIModalPresentationStyle?
-
A Boolean value indicating whether the view controller enforces a modal behavior.
Declaration
Swift
@MainActor public let isModalInPresentation: Bool?
-
UIModalTransitionStyle
settingDeclaration
Swift
@MainActor public let transitionStyle: UIModalTransitionStyle?
-
The preferredContentSize is used for any container laying out a child view controller.
Declaration
Swift
@MainActor public let preferredContentSize: CGSize?
-
Block to configure
UIPresentationController
Declaration
Swift
@MainActor public let presentationControllerConfigurationBlock: ((UIPresentationController) -> Void)?
-
UIViewControllerTransitioningDelegate
instance to be used during the transitionDeclaration
Swift
@MainActor public private(set) weak var transitioningDelegate: UIViewControllerTransitioningDelegate? { get }
-
Declaration
Swift
@MainActor public func perform(with viewController: UIViewController, on existingController: UIViewController, animated: Bool, completion: @escaping (_: RoutingResult) -> Void)
-
present(startingFrom:
presentationStyle: transitionStyle: transitioningDelegate: preferredContentSize: isModalInPresentation: presentationConfiguration: ) Presents a view controller modally
Declaration
Swift
@MainActor static func present(startingFrom presentationStartingPoint: ViewControllerActions.PresentModallyAction.ModalPresentationStartingPoint = .current, presentationStyle: UIModalPresentationStyle? = .fullScreen, transitionStyle: UIModalTransitionStyle? = .coverVertical, transitioningDelegate: UIViewControllerTransitioningDelegate? = nil, preferredContentSize: CGSize? = nil, isModalInPresentation: Bool? = nil, presentationConfiguration: ((_: UIPresentationController) -> Void)? = nil) -> Self
Parameters
presentationStartingPoint
A starting point in the modal presentation
presentationStyle
UIModalPresentationStyle
setting, default value: .fullScreentransitionStyle
UIModalTransitionStyle
setting, default value: .coverVerticaltransitioningDelegate
UIViewControllerTransitioningDelegate
instance to be used during the transitionisModalInPresentation
A Boolean value indicating whether the view controller enforces a modal behavior.
preferredContentSize
The preferredContentSize is used for any container laying out a child view controller.
presentationConfiguration
Block to configure
UIPresentationController
. -
present(startingFrom:
presentationStyle: transitionStyle: transitioningDelegate: preferredContentSize: isModalInPresentation: popoverConfiguration: ) Presents a view controller modally
Declaration
Swift
@MainActor static func present(startingFrom presentationStartingPoint: ViewControllerActions.PresentModallyAction.ModalPresentationStartingPoint = .current, presentationStyle: UIModalPresentationStyle? = .fullScreen, transitionStyle: UIModalTransitionStyle? = .coverVertical, transitioningDelegate: UIViewControllerTransitioningDelegate? = nil, preferredContentSize: CGSize? = nil, isModalInPresentation: Bool? = nil, popoverConfiguration: ((_: UIPopoverPresentationController) -> Void)? = nil) -> Self
Parameters
presentationStartingPoint
A starting point in the modal presentation
presentationStyle
UIModalPresentationStyle
setting, default value: .fullScreentransitionStyle
UIModalTransitionStyle
setting, default value: .coverVerticaltransitioningDelegate
UIViewControllerTransitioningDelegate
instance to be used during the transitionisModalInPresentation
A Boolean value indicating whether the view controller enforces a modal behavior.
preferredContentSize
The preferredContentSize is used for any container laying out a child view controller.
popoverControllerConfigurationBlock
Block to configure
UIPopoverPresentationController
. -
Presents a view controller modally
Declaration
Swift
@MainActor static var present: `Self` { get }