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

This commit is contained in:
gladiusKatana
2023-05-09 18:31:45 -04:00
committed by William Casarin
parent 52ca33ef6a
commit 0f805d7ea7

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