<!--
{
  "availability" : [
    "iOS: 13.0.0 -",
    "iPadOS: 13.0.0 -",
    "macCatalyst: 13.1.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CarPlay",
  "identifier" : "/documentation/CarPlay/CPContentStyle",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "CarPlay"
    ],
    "preciseIdentifier" : "c:@E@CPContentStyle"
  },
  "title" : "CPContentStyle"
}
-->

# CPContentStyle

The types of content style that the vehicle allows.

```
struct CPContentStyle
```

## Overview

The vehicle selects the content style according to the ambient light level. Your navigation app can use this value to determine the most appropriate style of map content to draw in its base view. The content style is independent of the user interface style, which controls light and dark mode.

You don’t create instances of `CPContentStyle`. Instead, the session configuration provides the current content style, and it notifies its delegate of any changes. See [`CPSessionConfiguration`](/documentation/CarPlay/CPSessionConfiguration) for more information.

## Topics

### Creating a Content Style

[`init(rawValue:)`](/documentation/CarPlay/CPContentStyle/init(rawValue:))

Creates a content style from a raw value.

### Content Styles

[`CPContentStyleDark`](/documentation/CarPlay/CPContentStyle/dark)

The indication from the vehicle to draw the content in a dark style.

[`CPContentStyleLight`](/documentation/CarPlay/CPContentStyle/light)

The indication from the vehicle to draw the content in a light style.

## Relationships

### Conforms To

[`OptionSet`](/documentation/Swift/OptionSet)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`RawRepresentable`](/documentation/Swift/RawRepresentable)

[`Sendable`](/documentation/Swift/Sendable)

[`Equatable`](/documentation/Swift/Equatable)

[`BitwiseCopyable`](/documentation/Swift/BitwiseCopyable)

[`SetAlgebra`](/documentation/Swift/SetAlgebra)

[`ExpressibleByArrayLiteral`](/documentation/Swift/ExpressibleByArrayLiteral)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)