init(content:label:)
Creates a standard labeled element, with a view that conveys the value of the element and a label.
Declaration
nonisolated init(@ViewBuilder content: () -> Content, @ViewBuilder label: () -> Label)Parameters
- content:
The view that conveys the value of the resulting labeled element.
- label:
The label that describes the purpose of the result.