We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 58e17dd + 7ca0e4b commit 15045a9Copy full SHA for 15045a9
1 file changed
Sources/CodeEditor/UXCodeTextViewRepresentable.swift
@@ -94,6 +94,12 @@ struct UXCodeTextViewRepresentable : UXViewRepresentable {
94
parent.source.wrappedValue = textView.string
95
}
96
97
+ #if os(iOS)
98
+ public func textViewDidChange(_ textView: UITextView) {
99
+ parent.source.wrappedValue = textView.string
100
+ }
101
+ #endif
102
+
103
var allowCopy: Bool {
104
return parent.flags.contains(.selectable)
105
|| parent.flags.contains(.editable)
0 commit comments