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.

Color

UIKit Label Colors

Explore UIKit Label Colors on iPhone in portrait, with SwiftUI code and Apple API documentation.

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))
  }
}
iOS 13.0+ iPadOS 13.0+ tvOS 13.0+ visionOS 1.0+

Every available iPhone screenshot for UIKit Label Colors.

1 views