The solution for iOS 15+ would be as follows:
TextEditor(text: $comment) .textInputAutocapitalization(.never) .disableAutocorrection(true)
TextInputAutocapitalization documentation