From af8ce3d32d33bd63ad11c620c880681ad8455834 Mon Sep 17 00:00:00 2001 From: William Casarin Date: Tue, 14 Mar 2023 16:30:29 -0600 Subject: [PATCH] Revert "Fix cursor jumping around after pressing return" This reverts commit dd511c30614b687caf479ff57c8be49de011fdac. --- damus/Views/TextViewWrapper.swift | 4 ---- 1 file changed, 4 deletions(-) diff --git a/damus/Views/TextViewWrapper.swift b/damus/Views/TextViewWrapper.swift index bea739d9..c43c4e48 100644 --- 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 {