Revert "Fix cursor jumping around after pressing return"

This reverts commit dd511c3061.
This commit is contained in:
William Casarin
2023-03-14 16:30:29 -06:00
parent cabe584938
commit af8ce3d32d

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 {