@@ -46,41 +46,41 @@ public struct ModifiedWorkflowView<Args, Wrapped: View, Content: View>: View {
4646 }
4747 }
4848
49- init < A, FR> ( _ WorkflowLauncher : WorkflowLauncher < A > , isLaunched: Binding < Bool > , item: WorkflowItem < FR , Content > ) where Wrapped == Never , Args == FR . WorkflowOutput {
49+ init < A, FR> ( _ workflowLauncher : WorkflowLauncher < A > , isLaunched: Binding < Bool > , item: WorkflowItem < FR , Content > ) where Wrapped == Never , Args == FR . WorkflowOutput {
5050 wrapped = nil
5151 let wf = AnyWorkflow ( Workflow < FR > ( item. metadata) )
5252 workflow = wf
53- launchArgs = WorkflowLauncher . passedArgs
53+ launchArgs = workflowLauncher . passedArgs
5454 _isLaunched = isLaunched
55- onFinish = WorkflowLauncher . onFinish
56- onAbandon = WorkflowLauncher . onAbandon
57- let model = WorkflowViewModel ( isLaunched: isLaunched)
55+ onFinish = workflowLauncher . onFinish
56+ onAbandon = workflowLauncher . onAbandon
57+ let model = WorkflowViewModel ( isLaunched: isLaunched, launchArgs : workflowLauncher . passedArgs )
5858 _model = StateObject ( wrappedValue: model)
5959 _launcher = StateObject ( wrappedValue: Launcher ( workflow: wf,
6060 responder: model,
61- launchArgs: WorkflowLauncher . passedArgs) )
61+ launchArgs: workflowLauncher . passedArgs) )
6262 }
6363
64- private init < A, W, C, FR> ( _ WorkflowLauncher : ModifiedWorkflowView < A , W , C > , item: WorkflowItem < FR , Content > ) where Wrapped == ModifiedWorkflowView < A , W , C > , Args == FR . WorkflowOutput {
65- _model = WorkflowLauncher . _model
66- wrapped = WorkflowLauncher
67- workflow = WorkflowLauncher . workflow
64+ private init < A, W, C, FR> ( _ workflowLauncher : ModifiedWorkflowView < A , W , C > , item: WorkflowItem < FR , Content > ) where Wrapped == ModifiedWorkflowView < A , W , C > , Args == FR . WorkflowOutput {
65+ _model = workflowLauncher . _model
66+ wrapped = workflowLauncher
67+ workflow = workflowLauncher . workflow
6868 workflow. append ( item. metadata)
69- launchArgs = WorkflowLauncher . launchArgs
70- _isLaunched = WorkflowLauncher . _isLaunched
71- _launcher = WorkflowLauncher . _launcher
72- onAbandon = WorkflowLauncher . onAbandon
69+ launchArgs = workflowLauncher . launchArgs
70+ _isLaunched = workflowLauncher . _isLaunched
71+ _launcher = workflowLauncher . _launcher
72+ onAbandon = workflowLauncher . onAbandon
7373 }
7474
75- private init ( WorkflowLauncher : Self , onFinish: [ ( AnyWorkflow . PassedArgs ) -> Void ] , onAbandon: [ ( ) -> Void ] ) {
76- _model = WorkflowLauncher . _model
77- wrapped = WorkflowLauncher . wrapped
78- workflow = WorkflowLauncher . workflow
75+ private init ( workflowLauncher : Self , onFinish: [ ( AnyWorkflow . PassedArgs ) -> Void ] , onAbandon: [ ( ) -> Void ] ) {
76+ _model = workflowLauncher . _model
77+ wrapped = workflowLauncher . wrapped
78+ workflow = workflowLauncher . workflow
7979 self . onFinish = onFinish
8080 self . onAbandon = onAbandon
81- launchArgs = WorkflowLauncher . launchArgs
82- _isLaunched = WorkflowLauncher . _isLaunched
83- _launcher = WorkflowLauncher . _launcher
81+ launchArgs = workflowLauncher . launchArgs
82+ _isLaunched = workflowLauncher . _isLaunched
83+ _launcher = workflowLauncher . _launcher
8484 }
8585
8686 private func launch( ) {
@@ -97,14 +97,14 @@ public struct ModifiedWorkflowView<Args, Wrapped: View, Content: View>: View {
9797 public func onFinish( closure: @escaping ( AnyWorkflow . PassedArgs ) -> Void ) -> Self {
9898 var onFinish = self . onFinish
9999 onFinish. append ( closure)
100- return Self ( WorkflowLauncher : self , onFinish: onFinish, onAbandon: onAbandon)
100+ return Self ( workflowLauncher : self , onFinish: onFinish, onAbandon: onAbandon)
101101 }
102102
103103 /// Adds an action to perform when this `Workflow` has abandoned.
104104 public func onAbandon( closure: @escaping ( ) -> Void ) -> Self {
105105 var onAbandon = self . onAbandon
106106 onAbandon. append ( closure)
107- return Self ( WorkflowLauncher : self , onFinish: onFinish, onAbandon: onAbandon)
107+ return Self ( workflowLauncher : self , onFinish: onFinish, onAbandon: onAbandon)
108108 }
109109}
110110
0 commit comments