---
title: "sectionIndexLabel(_:)"
framework: swiftui
role: symbol
role_heading: Instance Method
path: "swiftui/view/sectionindexlabel(_:)"
---

# sectionIndexLabel(_:)

Sets the label that is used in a section index to point to this section, typically only a single character long.

## Declaration

```swift
nonisolated func sectionIndexLabel(_ label: Text?) -> some View

```

## Parameters

- `label`: The label to display in the section index, or nil to display no label for this section.

## Discussion

Discussion See also listSectionIndexVisibility(_:)

## See Also

### Configuring a section index

- [listSectionIndexVisibility(_:)](swiftui/view/listsectionindexvisibility(_:).md)
