Skip to content

Commit fb45e4e

Browse files
committed
Added allowsUndo
1 parent 9e13107 commit fb45e4e

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

Sources/CodeEditor/UXCodeTextViewRepresentable.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,9 @@ struct UXCodeTextViewRepresentable : UXViewRepresentable {
130130
return
131131
}
132132

133-
parent.source.wrappedValue = textView.string
133+
DispatchQueue.main.async {
134+
self.parent.source.wrappedValue = textView.string
135+
}
134136
}
135137

136138
#if os(macOS)

0 commit comments

Comments
 (0)