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
workflowWorkflowto launchargsArgs to pass to the first
FlowRepresentablelaunchStyleThe
PresentationTypeused to launch the workflowonFinishA callback that is called when the last item in the workflow proceeds; called with the
AnyWorkflow.PassedArgsthe 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
workflowWorkflowto launchlaunchStyleThe
PresentationTypeused to launch the workflowonFinishA callback that is called when the last item in the workflow proceeds; called with the
AnyWorkflow.PassedArgsthe 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
workflowAnyWorkflowto launchargsArgs to pass to the first
FlowRepresentablelaunchStyleThe
PresentationTypeused to launch the workflowonFinishA callback that is called when the last item in the workflow proceeds; called with the
AnyWorkflow.PassedArgsthe 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
workflowAnyWorkflowto launchlaunchStyleThe
PresentationTypeused to launch the workflowonFinishA callback that is called when the last item in the workflow proceeds; called with the
AnyWorkflow.PassedArgsthe workflow finished with.
View on GitHub
UIViewController Extension Reference