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 -
UIModalPresentationStylesettingDeclaration
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? -
UIModalTransitionStylesettingDeclaration
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
UIPresentationControllerDeclaration
Swift
@MainActor public let presentationControllerConfigurationBlock: ((UIPresentationController) -> Void)? -
UIViewControllerTransitioningDelegateinstance 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) -> SelfParameters
presentationStartingPointA starting point in the modal presentation
presentationStyleUIModalPresentationStylesetting, default value: .fullScreentransitionStyleUIModalTransitionStylesetting, default value: .coverVerticaltransitioningDelegateUIViewControllerTransitioningDelegateinstance to be used during the transitionisModalInPresentationA Boolean value indicating whether the view controller enforces a modal behavior.
preferredContentSizeThe preferredContentSize is used for any container laying out a child view controller.
presentationConfigurationBlock 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) -> SelfParameters
presentationStartingPointA starting point in the modal presentation
presentationStyleUIModalPresentationStylesetting, default value: .fullScreentransitionStyleUIModalTransitionStylesetting, default value: .coverVerticaltransitioningDelegateUIViewControllerTransitioningDelegateinstance to be used during the transitionisModalInPresentationA Boolean value indicating whether the view controller enforces a modal behavior.
preferredContentSizeThe preferredContentSize is used for any container laying out a child view controller.
popoverControllerConfigurationBlockBlock to configure
UIPopoverPresentationController. -
Presents a view controller modally
Declaration
Swift
@MainActor static var present: `Self` { get }