Interactive previews iPhone
UIKit Text Colors
The UIKit text colors that are also used in other components, such as the TextField
Platform Compatibility
iOS 13.0+ iPadOS 13.0+ tvOS 13.0+ visionOS 1.0+
Tags
SwiftUI Code
TextField("Placeholder", text: .constant(""))
Text("Placeholder")
.foregroundStyle(Color(.placeholderText))Found an issue or have a suggestion?
Created: May 29, 2025Updated: May 29, 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
Color Variants
HierarchicalShapeStyle, a shape style that maps to one of the numbered content styles
Explore Other Components
Browse allCustom Preview Item ShareLink
Creates an instance, with a custom label, that presents the share interface
AccessoryLinearGaugeStyle
A gauge style that displays bar with a marker that appears at a point along the bar to indicate the gauge’s current value
InsetGroupedListStyle
The list style that describes the behavior and appearance of an inset grouped list.
AccessoryCircularGaugeStyle
A gauge style that displays an open ring with a marker that appears at a point along the ring to indicate the gauge’s current value