File tree Expand file tree Collapse file tree 2 files changed +1
-3
lines changed
Sources/CodeEditSourceEditor Expand file tree Collapse file tree 2 files changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -234,6 +234,7 @@ public class TextViewController: NSViewController {
234234 coordinators. forEach {
235235 $0. prepareCoordinator ( controller: self )
236236 }
237+ self . textCoordinators = coordinators. map { WeakCoordinator ( $0) }
237238 }
238239
239240 required init ? ( coder: NSCoder ) {
Original file line number Diff line number Diff line change @@ -128,9 +128,6 @@ public struct SourceEditor: NSViewControllerRepresentable {
128128 context. coordinator. isUpdatingFromRepresentable = false
129129 }
130130
131- // Set this no matter what to avoid having to compare object pointers.
132- controller. textCoordinators = coordinators. map { WeakCoordinator ( $0) }
133-
134131 // Do manual diffing to reduce the amount of reloads.
135132 // This helps a lot in view performance, as it otherwise gets triggered on each environment change.
136133 guard !paramsAreEqual( controller: controller, coordinator: context. coordinator) else {
You can’t perform that action at this time.
0 commit comments