Interactive previews iPhone
Semantic Colors
Platform Compatibility
iOS 13.0.+ macOS 10.15+ watchOS 6.0+ tvOS 13.0+ visionOS 1.0+
Tags
SwiftUI Code
Text("Primary Text Color")
.foregroundStyle(.primary)
Text("Secondary Text Color")
.foregroundStyle(.secondary)Found an issue or have a suggestion?
Created: May 29, 2025Updated: May 31, 2025
More Color Components
View allUIKit Separator Colors
The UIKit separator colors that are also used in other components, such as the TextField
UIKit Content Background colors
The UIKit colors that are also used in other components like in List and GroupBox
UIKit Text Colors
The UIKit text colors that are also used in other components, such as the TextField
Explore Other Components
Browse allOnly Horizontal Split Arrangement Style
Creates a horizontal split arrangement only in portrait orientation. In landscape orientation, no split is applied.
Single Subscription Store View
Creates a view that loads subscriptions based on a collection of product identifiers, and merchandises them with automatic marketing content.
Message Item Alert
Presents an alert with a message using the given data to produce the alert’s content and a localized string key for a title.