Post

Replies

Boosts

Views

Activity

Reply to UIViewRepresentable of UITextView in SwiftUI layout issues
You should disable scroll after UITextView finished layout func makeUIView(context: UIViewRepresentableContextSelf) - UITextView { let view = UITextView() view.isScrollEnabled = false ...... return view }     func updateUIView(_ uiView: UITextView, context: Context) {         if uiView.frame.size != .zero {             uiView.isScrollEnabled = false         }     }
Topic: App & System Services SubTopic: Core OS Tags:
Mar ’21