Interactive previews iPhone

UIKit Content Background colors

The UIKit colors that are also used in other components like in List and GroupBox

UIKit Content Background colors - iOS on iPhone - Portrait - Flat Design - Light Mode - Preview

Platform Compatibility

iOS 13.0.+ iPadOS 13.0+ visionOS 1.0+

Tags

SwiftUI Code

Docs
VStack {
  List {
    Section {
      Text("content")
    }
  }
  .frame(maxHeight: 50)
  HStack {
    smallRect
    // can also be used as inverted text color
      .foregroundStyle(Color(.systemBackground))
    smallRect
    // GroupBox content backgroud
      .foregroundStyle(Color(.secondarySystemBackground))
    smallRect
      .foregroundStyle(Color(.tertiarySystemBackground))
    smallRect
    // can also be used as inverted text color
    // List background
      .foregroundStyle(Color(.systemGroupedBackground))
    smallRect
    // List content background
      .foregroundStyle(Color(.secondarySystemGroupedBackground))
    smallRect
      .foregroundStyle(Color(.tertiarySystemGroupedBackground))
  }
  GroupBox {
    Text("content")
  }
  .frame(maxHeight: 50)
}

Found an issue or have a suggestion?

Created: May 29, 2025Updated: May 29, 2025

More Color Components

View all
Color Opacity - iOS on iPhone - Portrait - Flat Design - Light Mode - Preview
style

Color Opacity

The Color opacity modifier

Color Gradient - iOS on iPhone - Portrait - Flat Design - Light Mode - Preview
modifier

Color Gradient

The Color gradient modifier

UIKit Separator Colors - iOS on iPhone - Portrait - Flat Design - Light Mode - Preview
type

UIKit Separator Colors

The UIKit separator colors that are also used in other components, such as the TextField

UIKit Text Colors - iOS on iPhone - Portrait - Flat Design - Light Mode - Preview
type

UIKit Text Colors

The UIKit text colors that are also used in other components, such as the TextField

UIKit Fill Colors - iOS on iPhone - Portrait - Flat Design - Light Mode - Preview
type

UIKit Fill Colors

UIKit Label Colors - iOS on iPhone - Portrait - Flat Design - Light Mode - Preview
type

UIKit Label Colors

Color Variants - iOS on iPhone - Portrait - Flat Design - Light Mode - Preview
modifier

Color Variants

HierarchicalShapeStyle, a shape style that maps to one of the numbered content styles

Semantic Colors - iOS on iPhone - Portrait - Flat Design - Light Mode - Preview
type

Semantic Colors

Explore Other Components

Browse all
TabView Bottom Accessory Placement - iOS on iPhone - Portrait - Liquid Glass - Light Mode - Preview
style

TabView Bottom Accessory Placement

A placement of the bottom accessory in a tab view. You can use this to adjust the content of the accessory view based on the placement

Fitted Sheet Sizing - iPadOS - Landscape - Liquid Glass - Light Mode - Preview
modifier

Fitted Sheet Sizing

Sets the sizing of the containing presentation. This does not have any effect on smaller devices like iPhone and Apple Watch. On macOS, fitted is the default.

Restore Purchases Button - iOS on iPhone - Portrait - Liquid Glass - Light Mode - Preview
modifier

Restore Purchases Button

A type of button that people use to restore purchases.

Overlay Arrangement Edge - iOS on iPhone Duo - Landscape - Partially Open - Liquid Glass - Light Mode - Preview
modifier

Overlay Arrangement Edge

The horizontal edge a view in an overlay arrangement occupies when the arrangement transitions to a horizontal layout. In this case, the primary view overlays the secondary view at the trailing edge when the screen is partially open in landscape.

Item Alert - iOS on iPhone - Portrait - Liquid Glass - Light Mode - Preview
modifier

Item Alert

Presents an alert using the given data to produce the alert’s content and a text view as a title.

NavigationControlGroupStyle - iOS on iPhone - Portrait - Liquid Glass - Light Mode - Preview
style

NavigationControlGroupStyle

The navigation control group style

Custom Phases Async URL Image - iOS on iPhone - Portrait - Liquid Glass - Light Mode - Preview
initializer

Custom Phases Async URL Image

Loads and displays a modifiable image from the specified URL load request in phases.

ControlGroup - iOS on iPhone - Portrait - Liquid Glass - Light Mode - Preview
initializer

ControlGroup

Creates a new ControlGroup with the specified children