Interactive previews iPhone

Custom Label

Creates a label with a custom title and icon.

Custom Label - iOS on iPhone - Portrait - Liquid Glass - Light Mode - Preview

Platform Compatibility

iOS 14.0+ iPadOS 14.0+ macOS 11.0+ watchOS 7.0+ tvOS 14.0+ visionOS 1.0+

Tags

SwiftUI Code

Docs
Label {
    Text("Foo")
    Text("Bar")
} icon: {
    Image(systemName: "1.circle")
    Image(systemName: "2.circle")
}

Found an issue or have a suggestion?

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

More Label Components

View all
Label Styles - iOS on iPhone - Portrait - Liquid Glass - Light Mode - Preview
style

Label Styles

Sets the style for labels within this view.

Image Label - iOS on iPhone - Portrait - Liquid Glass - Light Mode - Preview
initializer

Image Label

Creates a label with an icon image and a title generated from a localized string.

System Image Label - iOS on iPhone - Portrait - Liquid Glass - Light Mode - Preview
initializer

System Image Label

Creates a label with a system icon image and a title generated from a localized string.

Explore Other Components

Browse all
Capsule Text Field - macOS - Liquid Glass - Light Mode - Preview
modifier

Capsule Text Field

Gives your text field a capsule shape. This only has a visible effect on macOS, where the capsule shape is not the default.

InsetListStyle - iOS on iPhone - Portrait - Flat Design - Light Mode - Preview
style

InsetListStyle

The list style that describes the behavior and appearance of an inset list.

Toolbar Overflow Menu - iOS on iPhone - Portrait - Liquid Glass - Light Mode - Preview
initializer

Toolbar Overflow Menu

The overflow menu of a toolbar. An overflow menu represents actions that are always placed in the toolbar’s overflow menu, regardless of the toolbar mode, platform, or customizability.

Menu Section - iOS on iPhone - Portrait - Liquid Glass - Light Mode - Preview
content

Menu Section

A Section inside a Menu

DatePicker Colors - iOS on iPhone - Portrait - Liquid Glass - Light Mode - Preview
style

DatePicker Colors

Customizing the colors of the date picker

Stepped Slider - iOS on iPhone - Portrait - Liquid Glass - Light Mode - Preview
initializer

Stepped Slider

Creates a slider to select a value from a given range, subject to a step increment

Divider - iOS on iPhone - Portrait - Liquid Glass - Light Mode - Preview
initializer

Divider

A visual element that can be used to separate other content

Menu - iOS on iPhone - Portrait - Liquid Glass - Light Mode - Preview
initializer

Menu

A control for presenting a menu of actions.