In SwiftUI iOS 14 why doesn't the TextEditor control automatically scroll up to avoid the keyboard as the TextField does?

Viewed 1246

In iOS 14 the TextField automatically scrolls up when selected to avoid the keyboard but I can't get the same to happen for the new TextEditor control.

I have tried the following but it doesn't have any effect:

Form { Section(header: Text("Section Header")) {
  Spacer()
  TextEditor(text: $myComments).frame(height: 100).ignoresSafeArea(.keyboard, edges: .bottom)  } 
}
0 Answers
Related