From 2f547e0b894b86739a0573b8e96cf2532e4df9d5 Mon Sep 17 00:00:00 2001 From: Tyler Thompson Date: Sat, 27 Aug 2022 22:08:38 -0600 Subject: [PATCH] [fix-212] - Set up workflow pointer on both references - TT --- .../SwiftCurrent_SwiftUI/Views/ViewControllerWrapper.swift | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Sources/SwiftCurrent_SwiftUI/Views/ViewControllerWrapper.swift b/Sources/SwiftCurrent_SwiftUI/Views/ViewControllerWrapper.swift index cb9fb4f6..3ba7bd77 100644 --- a/Sources/SwiftCurrent_SwiftUI/Views/ViewControllerWrapper.swift +++ b/Sources/SwiftCurrent_SwiftUI/Views/ViewControllerWrapper.swift @@ -18,7 +18,11 @@ public struct ViewControllerWrapper: Vi public typealias WorkflowInput = F.WorkflowInput public typealias WorkflowOutput = F.WorkflowOutput - public weak var _workflowPointer: AnyFlowRepresentable? + public weak var _workflowPointer: AnyFlowRepresentable? { + didSet { + vc._workflowPointer = _workflowPointer + } + } private var vc: F