The prominence to apply.
Instance Method
インスタンスメソッド
header
headerProminence(_:)
Sets the header prominence for this view.
Availability 有効性
- iOS 15.0+
- iPadOS 15.0+
- macOS 12.0+
- Mac Catalyst 15.0+
- tvOS 15.0+
- watchOS 8.0+
Technology
- Swift
UI
Declaration 宣言
func headerProminence(_ prominence: Prominence
) -> some View
Parameters パラメータ
prominence
Discussion 議論
In the following example, the section header appears with increased prominence:
List {
Section(header: Text("Header")) {
Text("Row")
}
.headerProminence(.increased)
}
.listStyle(.insetGrouped)