<!--
{
  "availability" : [
    "iOS: 12.0.0 -",
    "iPadOS: 12.0.0 -",
    "macCatalyst: 13.1.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CarPlay",
  "identifier" : "/documentation/CarPlay/CPImageSet",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "CarPlay"
    ],
    "preciseIdentifier" : "c:objc(cs)CPImageSet"
  },
  "title" : "CPImageSet"
}
-->

# CPImageSet

Light and dark representations of an image.

```
class CPImageSet
```

## 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: UIImage, darkContentImage: UIImage)`](/documentation/CarPlay/CPImageSet/init(lightContentImage:darkContentImage:))

Creates an image set with light and dark versions of an image.

### Getting Content Images

[`var lightContentImage: UIImage`](/documentation/CarPlay/CPImageSet/lightContentImage)

The image the system displays when the user interface style is light.

[`var darkContentImage: UIImage`](/documentation/CarPlay/CPImageSet/darkContentImage)

The image the system displays when the user interface style is dark.

### Initializers

[`init?(coder: NSCoder)`](/documentation/CarPlay/CPImageSet/init(coder:))

## Relationships

### Inherits From

[`NSObject-swift.class`](/documentation/ObjectiveC/NSObject-swift.class)

### Conforms To

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

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

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

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

[`NSObjectProtocol`](/documentation/ObjectiveC/NSObjectProtocol)

[`NSCoding`](/documentation/Foundation/NSCoding)

[`NSSecureCoding`](/documentation/Foundation/NSSecureCoding)

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

---

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)