Post

Replies

Boosts

Views

Activity

Reply to TextEditor Keyboard Avoidance not working
I have the same issue. I made a sample project to test the issue, inside a scrollview I have multiple TextFields and a TextEditor. The scrollview will not scroll once the TextEditor is focused. struct ContentView: View {     var body: some View {         VStack {             ScrollView {                 VStack(spacing: 30) {                     Button("Hide") {                         UIApplication.shared.sendAction(#selector(UIResponder.resignFirstResponder), to: nil, from: nil, for: nil)                     }                     .padding(.top, 150)                     TextField("", text: .constant("Text1"))                     TextField("", text: .constant("Text2"))                     TextField("", text: .constant("Text3"))                     TextField("", text: .constant("Text4"))                     TextField("", text: .constant("Text5"))                     TextField("", text: .constant("Text6"))                     TextField("", text: .constant("Text7"))                     TextField("", text: .constant("Text8"))                     TextEditor(text: .constant("TextEditor1"))                 }             }         }     } }
Jun ’22