Revert "Fix cursor jumping around after pressing return"

This reverts commit dd511c3061.
This commit is contained in:
William Casarin committed 2023-03-14 16:34:31 -06:00
1 parent cabe584938
commit af8ce3d32d
1 file changed
-4
-4
View File
@@ -22,11 +22,7 @@ struct TextViewWrapper: UIViewRepresentable {
}
func updateUIView(_ uiView: UITextView, context: Context) {
let selectedRange = uiView.selectedRange
uiView.isScrollEnabled = false
uiView.attributedText = attributedText
uiView.selectedRange = selectedRange
uiView.isScrollEnabled = true
}
func makeCoordinator() -> Coordinator {