Skip to content

Commit 1d633ae

Browse files
authored
Fix for non-updating text
1 parent 561fa9d commit 1d633ae

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Sources/CodeEditTextView/STTextViewController.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,10 @@ public class STTextViewController: NSViewController, STTextViewDelegate, ThemeAt
169169
public override func viewDidAppear() {
170170
super.viewDidAppear()
171171
}
172+
173+
public func textDidChange(_ notification: Notification) {
174+
self.text.wrappedValue = textView.string
175+
}
172176

173177
// MARK: UI
174178

0 commit comments

Comments
 (0)