---
title: CPContentStyle
framework: carplay
role: symbol
role_heading: Structure
path: carplay/cpcontentstyle
---

# CPContentStyle

The types of content style that the vehicle allows.

## Declaration

```swift
struct CPContentStyle
```

## Overview

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 for more information.

## Topics

### Creating a Content Style

- [init(rawValue:)](carplay/cpcontentstyle/init(rawvalue:).md)

### Content Styles

- [dark](carplay/cpcontentstyle/dark.md)
- [light](carplay/cpcontentstyle/light.md)

## Relationships

### Conforms To

- [BitwiseCopyable](swift/bitwisecopyable.md)
- [Equatable](swift/equatable.md)
- [ExpressibleByArrayLiteral](swift/expressiblebyarrayliteral.md)
- [OptionSet](swift/optionset.md)
- [RawRepresentable](swift/rawrepresentable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)
- [SetAlgebra](swift/setalgebra.md)

## See Also

### Getting the Content Style

- [contentStyle](carplay/cpsessionconfiguration/contentstyle.md)
