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

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