UIKit Label Colors
Platform Compatibility
iOS 13.0+ iPadOS 13.0+ tvOS 13.0+ visionOS 1.0+
Tags
SwiftUI Code
VStack {
HStack {
Text("Label")
.foregroundStyle(Color(.label))
Text("Secondary Label")
.foregroundStyle(Color(.secondaryLabel))
}
HStack {
Text("Tertiary Label")
.foregroundStyle(Color(.tertiaryLabel))
Text("Quaternary Label")
.foregroundStyle(Color(.quaternaryLabel))
}
}
Found an issue or have a suggestion?
Created: May 29, 2025Updated: May 29, 2025