GeneralAction
public enum GeneralAction
A wrapper for general actions that can be applied to any UIViewController
-
Replaces the root view controller in the key
UIWindowDeclaration
Swift
@MainActor public static func replaceRoot(animationOptions: UIView.AnimationOptions? = nil, windowProvider: WindowProvider = RouteComposerDefaults.shared.windowProvider, duration: TimeInterval = 0.3) -> ViewControllerActions.ReplaceRootActionParameters
windowProviderWindowProviderinstanceanimationOptionsSet of
UIView.AnimationOptions. Transition will happen without animation if not provided.durationTransition duration.
-
presentModally(startingFrom:presentationStyle: transitionStyle: transitioningDelegate: preferredContentSize: isModalInPresentation: presentationConfiguration: ) Presents a view controller modally
Declaration
Swift
@MainActor public static func presentModally(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) -> ViewControllerActions.PresentModallyActionParameters
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. -
Actiondoes nothing, but can be helpful for testing or writing the sequences of steps with theNilFactoryDeclaration
Swift
@MainActor public static func nilAction() -> ViewControllerActions.NilAction -
presentModally(startingFrom:presentationStyle: transitionStyle: transitioningDelegate: preferredContentSize: isModalInPresentation: popoverConfiguration: ) Presents a view controller modally
Declaration
Swift
@MainActor static func presentModally(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) -> ViewControllerActions.PresentModallyActionParameters
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.