Custom Labeled Content

Creates a standard labeled element, with a view that conveys the value of the element and a label.

Custom Labeled Content - iOS Liquid Glass Light Mode Preview

Platform Compatibility

iOS 16.0+ iPadOS 16.0+ macOS 13.0+ watchOS 9.0+ tvOS 16.0+ visionOS 1.0+

Tags

SwiftUI Code

Docs
List {
    LabeledContent {
        Button("bar", action: action)
    } label: {
        Label("Foo", systemImage: "star")
        Text("Sub")
    }
}

Found an issue or have a suggestion?

Created: February 15, 2026Updated: February 15, 2026