UIViewController

extension UIViewController
  • When using UIKit this is how you launch a workflow

    Note

    In the background this applies a UIKitPresenter, if you call launch on workflow directly you’ll need to apply one yourself

    Declaration

    Swift

    public func launchInto<F>(_ workflow: Workflow<F>,
                              args: Any?,
                              withLaunchStyle launchStyle: LaunchStyle.PresentationType = .default,
                              onFinish: ((AnyWorkflow.PassedArgs) -> Void)? = nil)

    Parameters

    workflow

    Workflow to launch

    args

    Args to pass to the first FlowRepresentable

    launchStyle

    The PresentationType used to launch the workflow

    onFinish

    A callback that is called when the last item in the workflow proceeds; called with the AnyWorkflow.PassedArgs the workflow finished with.

  • When using UIKit this is how you launch a workflow

    Note

    In the background this applies a UIKitPresenter, if you call launch on workflow directly you’ll need to apply one yourself

    Declaration

    Swift

    public func launchInto<F>(_ workflow: Workflow<F>,
                              withLaunchStyle launchStyle: LaunchStyle.PresentationType = .default,
                              onFinish: ((AnyWorkflow.PassedArgs) -> Void)? = nil)

    Parameters

    workflow

    Workflow to launch

    launchStyle

    The PresentationType used to launch the workflow

    onFinish

    A callback that is called when the last item in the workflow proceeds; called with the AnyWorkflow.PassedArgs the workflow finished with.

  • When using UIKit this is how you launch a workflow

    Note

    In the background this applies a UIKitPresenter, if you call launch on workflow directly you’ll need to apply one yourself

    Declaration

    Swift

    public func launchInto(_ workflow: AnyWorkflow,
                           args: Any?,
                           withLaunchStyle launchStyle: LaunchStyle.PresentationType = .default,
                           onFinish: ((AnyWorkflow.PassedArgs) -> Void)? = nil)

    Parameters

    workflow

    AnyWorkflow to launch

    args

    Args to pass to the first FlowRepresentable

    launchStyle

    The PresentationType used to launch the workflow

    onFinish

    A callback that is called when the last item in the workflow proceeds; called with the AnyWorkflow.PassedArgs the workflow finished with.

  • When using UIKit this is how you launch a workflow

    Note

    In the background this applies a UIKitPresenter, if you call launch on workflow directly you’ll need to apply one yourself

    Declaration

    Swift

    public func launchInto(_ workflow: AnyWorkflow,
                           withLaunchStyle launchStyle: LaunchStyle.PresentationType = .default,
                           onFinish: ((AnyWorkflow.PassedArgs) -> Void)? = nil)

    Parameters

    workflow

    AnyWorkflow to launch

    launchStyle

    The PresentationType used to launch the workflow

    onFinish

    A callback that is called when the last item in the workflow proceeds; called with the AnyWorkflow.PassedArgs the workflow finished with.