Compose SwiftUIv0.4.0
esc
GuideAPIGitHub
View modifier

sectionIndexLabel(_:)

A view modifier that maps SwiftUI's sectionIndexLabel.

iOS 26.0+macOS 26.0+tvOS 26.0+watchOS 26.0+
fun Modifier.sectionIndexLabel(label: String?): Modifier

Overview

Modifier.sectionIndexLabel(label = "…")

This is the Kotlin form of SwiftUI View.sectionIndexLabel(_:): SwiftUI documentation. In Swift it reads:

@export(implementation) nonisolated func sectionIndexLabel<S>(_ label: S?) -> some View where S : StringProtocol

Topics

Overloads

fun Modifier.sectionIndexLabel(label: String?): Modifier
SwiftUI View.sectionIndexLabel(_:)