From d6eb24001d30788ddb2c10e88e5b5843b2b69599 Mon Sep 17 00:00:00 2001 From: Miguel Ferreira Date: Sun, 12 Mar 2023 22:05:52 +0000 Subject: [PATCH] Updates STTextViewController according to the STTextViewDelegate The STTextViewDelegate textDidChange function changed to textViewDidChangeText. Without this change, the text binding value isn't updated. --- Sources/CodeEditTextView/STTextViewController.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/CodeEditTextView/STTextViewController.swift b/Sources/CodeEditTextView/STTextViewController.swift index 56d6ecd2c..145ec42d6 100644 --- a/Sources/CodeEditTextView/STTextViewController.swift +++ b/Sources/CodeEditTextView/STTextViewController.swift @@ -183,7 +183,7 @@ public class STTextViewController: NSViewController, STTextViewDelegate, ThemeAt super.viewDidAppear() } - public func textDidChange(_ notification: Notification) { + public func textViewDidChangeText(_ notification: Notification) { self.text.wrappedValue = textView.string }