A Form is a container used to build data-entry interfaces.
It automatically:
Form {
Text("Hello")
}
Usually used with sections:
Form {
Section {
Text("Content")
}
}
Section is used to group related inputs inside a form.
Form {
Section(header: Text("Personal Info")) {
TextField("First Name", text: $firstName)
TextField("Last Name", text: $lastName)
}
}