override .isScrollEnabled in TextViewWrapper (ie, set to false at UITextView creation)
This commit is contained in:
committed by
William Casarin
parent
52ca33ef6a
commit
0f805d7ea7
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user