commit af8ce3d32d33bd63ad11c620c880681ad8455834
parent cabe584938dbacdd358099564a72479cd4195b13
Author: William Casarin <jb55@jb55.com>
Date: Tue, 14 Mar 2023 16:30:29 -0600
Revert "Fix cursor jumping around after pressing return"
This reverts commit dd511c30614b687caf479ff57c8be49de011fdac.
Diffstat:
1 file changed, 0 insertions(+), 4 deletions(-)
diff --git a/damus/Views/TextViewWrapper.swift b/damus/Views/TextViewWrapper.swift
@@ -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 {