---
title: CPImageSet
framework: carplay
role: symbol
role_heading: Class
path: carplay/cpimageset
---

# CPImageSet

Light and dark representations of an image.

## Declaration

```swift
class CPImageSet
```

## Overview

Overview CarPlay is set to dark appearance by default in most vehicles, but does provide the option to automatically switch between dark and light appearance. Use an image set to provide images for both appearances, and CarPlay displays the correct one for the current appearance.

## Topics

### Creating an Image Set

- [init(lightContentImage:darkContentImage:)](carplay/cpimageset/init(lightcontentimage:darkcontentimage:).md)

### Getting Content Images

- [lightContentImage](carplay/cpimageset/lightcontentimage.md)
- [darkContentImage](carplay/cpimageset/darkcontentimage.md)

### Initializers

- [init(coder:)](carplay/cpimageset/init(coder:).md)

## Relationships

### Inherits From

- [NSObject](objectivec/nsobject-swift.class.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [NSCoding](foundation/nscoding.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)
- [NSSecureCoding](foundation/nssecurecoding.md)

## See Also

### Related Types

- [CPButton](carplay/cpbutton.md)
- [CarPlayErrorDomain](carplay/carplayerrordomain.md)
