ScreenDismissAction

public struct ScreenDismissAction<Container> : ScreenAction where Container : UIViewController

Dismisses the screen container that was presented modally by the container in which the action is performed.

Note

Unlike the dismiss(animated:completion:) method of UIViewController, this action dismisses only the presented container.
  • The type of value returned by the action.

    Declaration

    Swift

    public typealias Output = Void
  • A Boolean value indicating whether the transition will be animated.

    Declaration

    Swift

    public let animated: Bool
  • Creates an action.

    Declaration

    Swift

    public init(animated: Bool = true)

    Parameters

    animated

    A Boolean value indicating whether the transition will be animated. The default value is true.

  • Declaration

    Swift

    public func perform(
        container: Container,
        navigator: ScreenNavigator,
        completion: @escaping Completion
    )