Skip to content

Commit f7883bb

Browse files
author
Lukas Pistrol
authored
Fix for non-updating text (#102)
2 parents 561fa9d + c752fe0 commit f7883bb

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
@@ -170,6 +170,10 @@ public class STTextViewController: NSViewController, STTextViewDelegate, ThemeAt
170170
super.viewDidAppear()
171171
}
172172

173+
public func textDidChange(_ notification: Notification) {
174+
self.text.wrappedValue = textView.string
175+
}
176+
173177
// MARK: UI
174178

175179
/// A default `NSParagraphStyle` with a set `lineHeight`

0 commit comments

Comments
 (0)