ScreenFoldAction

public struct ScreenFoldAction<
    Action: ScreenAction,
    Nested: ScreenAction
>: ScreenAction where Action.Output == Nested.Container

Performs a nested action in the container that will be retrieved by performing another action.

  • A type of container that the action uses for navigation.

    See also

    ScreenContainer

    Declaration

    Swift

    public typealias Container = Action.Container
  • The type of value returned by the action.

    Declaration

    Swift

    public typealias Output = Nested.Output
  • Action to retrieve the container.

    Declaration

    Swift

    public let action: Action
  • Nested action to be performed in the retrieved container.

    Declaration

    Swift

    public let nested: Nested
  • Creates an action.

    Declaration

    Swift

    public init(action: Action, nested: Nested)

    Parameters

    action

    Action to retrieve the container.

    nested

    Nested action to be performed in the retrieved container.

  • Declaration

    Swift

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