Revert "Fix cursor jumping around after pressing return"
This reverts commit dd511c3061.
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user