headerProminence(_:)
Sets the header prominence for this view.
Declaration
nonisolated func headerProminence(_ prominence: Prominence) -> some View
Parameters
- prominence:
The prominence to apply.
Discussion
In the following example, the section header appears with increased prominence:
List {
Section(header: Text("Header")) {
Text("Row")
}
.headerProminence(.increased)
}
.listStyle(.insetGrouped)