iPhone SwiftUI layouts
Explore SwiftUI APIs, components, and modifiers with interactive iPhone previews, Swift code, and Apple documentation. Compare every available orientation, appearance, and design.
206elements
Label
Label Styles
Sets the style for labels within this view.
Explore Label Styles on iPhone in portrait, with SwiftUI code and Apple API documentation.
SwiftUI code
VStack {
Label("Foo", systemImage: "water.waves")
.labelStyle(.titleAndIcon)
Label("Foo", systemImage: "water.waves")
.labelStyle(.titleOnly)
Label("Foo", systemImage: "water.waves")
.labelStyle(.iconOnly)
}Compatibility
iOS 14.0+ iPadOS 14.0+ macOS 11.0+ watchOS 7.0+ tvOS 14.0+ visionOS 1.0+
Tags
Found an issue or have a suggestion?
All variants
Every available iPhone screenshot for Label Styles.