We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1fa4d3c commit 4c3e936Copy full SHA for 4c3e936
1 file changed
Sources/CodeEditSourceEditor/SourceEditor/SourceEditor.swift
@@ -140,6 +140,14 @@ public struct SourceEditor: NSViewControllerRepresentable {
140
} else {
141
context.coordinator.isUpdatingFromRepresentable = true
142
updateControllerWithState(state, controller: controller)
143
+ switch text {
144
+ case .storage:
145
+ break
146
+ case let .binding(text):
147
+ if controller.text != text.wrappedValue {
148
+ controller.text = text.wrappedValue
149
+ }
150
151
context.coordinator.isUpdatingFromRepresentable = false
152
}
153
0 commit comments