Instance Method インスタンスメソッド

headerProminence(_:)

Sets the header prominence for this view.

Declaration 宣言

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)