TextField with multiple lines in Swift UI

I have a simple View to retrieve User Input. I would like my TextField to span multiple lines. Any help is appreciated.


TextField("Content", text: $updatedReminderContent)
  .onAppear {
    self.updatedReminderContent = self.reminder.content!
  }
}
Answered by ForumsContributor in
Accepted Answer

If your app is targeting iOS 14+, you can use TextEditor instead of TextField. Do you have any reason you cannot use it?

TextField with multiple lines in Swift UI
 
 
Q