override .isScrollEnabled in TextViewWrapper (ie, set to false at UITextView creation)

This commit is contained in:
gladiusKatana authored and William Casarin committed 2023-05-24 20:41:03 -07:00
1 parent 52ca33ef6a
commit 0f805d7ea7
1 file changed
+1
+1
View File
@@ -15,6 +15,7 @@ struct TextViewWrapper: UIViewRepresentable {
func makeUIView(context: Context) -> UITextView {
let textView = UITextView()
textView.delegate = context.coordinator
textView.isScrollEnabled = false
textView.showsVerticalScrollIndicator = false
TextViewWrapper.setTextProperties(textView)
return textView