Skip to content

Commit 4bc7b54

Browse files
committed
Add missing UITextViewDelegate function
Implement `textViewDidChange(_ textView: UITextView)` function in `UXCodeTextViewRepresentable.Coordinator` class.
1 parent 2a2eba3 commit 4bc7b54

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

Sources/CodeEditor/UXCodeTextViewRepresentable.swift

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,12 @@ struct UXCodeTextViewRepresentable : UXViewRepresentable {
9494
parent.source.wrappedValue = textView.string
9595
}
9696

97+
#if os(iOS)
98+
public func textViewDidChange(_ textView: UITextView) {
99+
parent.source.wrappedValue = textView.string
100+
}
101+
#endif
102+
97103
var allowCopy: Bool {
98104
return parent.flags.contains(.selectable)
99105
|| parent.flags.contains(.editable)

0 commit comments

Comments
 (0)