I am creating a screen using a Form, with one TextField and one textEditor. Here is my code:
struct AddIssueView: View {
@State var title = ""
@State var description = "Enter issue description"
var body: some View {
NavigationView {
Form {
Section(header: Text("Title")) {
TextField("Enter issue title", text: $title)
}
Section(header: Text("Description")) {
TextEditor(text: $description)
}
.navigationTitle("New Issue")
}
}
}
}
This is the resulting screen - I find it surprising that the TextEditor UI looks like the TextField UI - I expected to see a multi-line text area. I'm not sure what I'm missing - any help will be most appreciated.