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 yourselfDeclaration
Swift
public func launchInto<F>(_ workflow: Workflow<F>, args: Any?, withLaunchStyle launchStyle: LaunchStyle.PresentationType = .default, onFinish: ((AnyWorkflow.PassedArgs) -> Void)? = nil)
Parameters
workflow
Workflow
to launchargs
Args to pass to the first
FlowRepresentable
launchStyle
The
PresentationType
used to launch the workflowonFinish
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 yourselfDeclaration
Swift
public func launchInto<F>(_ workflow: Workflow<F>, withLaunchStyle launchStyle: LaunchStyle.PresentationType = .default, onFinish: ((AnyWorkflow.PassedArgs) -> Void)? = nil)
Parameters
workflow
Workflow
to launchlaunchStyle
The
PresentationType
used to launch the workflowonFinish
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 yourselfDeclaration
Swift
public func launchInto(_ workflow: AnyWorkflow, args: Any?, withLaunchStyle launchStyle: LaunchStyle.PresentationType = .default, onFinish: ((AnyWorkflow.PassedArgs) -> Void)? = nil)
Parameters
workflow
AnyWorkflow
to launchargs
Args to pass to the first
FlowRepresentable
launchStyle
The
PresentationType
used to launch the workflowonFinish
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 yourselfDeclaration
Swift
public func launchInto(_ workflow: AnyWorkflow, withLaunchStyle launchStyle: LaunchStyle.PresentationType = .default, onFinish: ((AnyWorkflow.PassedArgs) -> Void)? = nil)
Parameters
workflow
AnyWorkflow
to launchlaunchStyle
The
PresentationType
used to launch the workflowonFinish
A callback that is called when the last item in the workflow proceeds; called with the
AnyWorkflow.PassedArgs
the workflow finished with.