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 {
234
234
coordinators. forEach {
235
235
$0. prepareCoordinator ( controller: self )
236
236
}
237
+ self . textCoordinators = coordinators. map { WeakCoordinator ( $0) }
237
238
}
238
239
239
240
required init ? ( coder: NSCoder ) {
Original file line number Diff line number Diff line change @@ -128,9 +128,6 @@ public struct SourceEditor: NSViewControllerRepresentable {
128
128
context. coordinator. isUpdatingFromRepresentable = false
129
129
}
130
130
131
- // Set this no matter what to avoid having to compare object pointers.
132
- controller. textCoordinators = coordinators. map { WeakCoordinator ( $0) }
133
-
134
131
// Do manual diffing to reduce the amount of reloads.
135
132
// This helps a lot in view performance, as it otherwise gets triggered on each environment change.
136
133
guard !paramsAreEqual( controller: controller, coordinator: context. coordinator) else {
You can’t perform that action at this time.
0 commit comments