<!--
{
  "availability" : [
    "iOS: 18.0.0 -",
    "iPadOS: 18.0.0 -",
    "macCatalyst: 18.0.0 -",
    "macOS: 15.0.0 -",
    "tvOS: 18.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AVFoundation",
  "identifier" : "/documentation/AVFoundation/AVCapturePhotoOutput/isConstantColorSupported",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "AVFoundation"
    ],
    "preciseIdentifier" : "c:objc(cs)AVCapturePhotoOutput(py)constantColorSupported"
  },
  "title" : "isConstantColorSupported"
}
-->

# isConstantColorSupported

A Boolean value that indicates whether a photo output supports constant color capture.

```
var isConstantColorSupported: Bool { get }
```

## Discussion

The light sources illuminating a scene affect an object’s color in a photograph, so the color of the same object captured in warm light might look significantly different than in colder light. In some cases, ambient light-induced color variation is undesirable, and you may prefer an estimate of what these materials would look like under a standard light such as daylight (D65), regardless of the lighting conditions at the time of capture. Some devices are capable of producing such constant color photos.

Constant color captures require the flash to fire and may require a pre-flash sequence to determine the correct focus and exposure, therefore it might take several seconds to acquire a constant color photo. Due to this flash requirement, you can only take a constant color capture with [`AVCaptureDevice.FlashMode.auto`](/documentation/AVFoundation/AVCaptureDevice/FlashMode-swift.enum/auto) or [`AVCaptureDevice.FlashMode.on`](/documentation/AVFoundation/AVCaptureDevice/FlashMode-swift.enum/on) as the flash mode, otherwise the system throws an exception.

You can only achieve constant color when the flash has a discernible effect on the scene, so it may not perform well in bright conditions such as direct sunlight. Use the photo’s [`constantColorConfidenceMap`](/documentation/AVFoundation/AVCapturePhoto/constantColorConfidenceMap) property to examine the confidence level, and therefore the usefulness, of each region of a constant color photo.

The property value is <doc://com.apple.documentation/documentation/Swift/true> if the session’s current configuration allows the output to capture photos with constant color.

When switching cameras or formats this property may change. When this property changes from <doc://com.apple.documentation/documentation/Swift/true> to <doc://com.apple.documentation/documentation/Swift/false>, the value of [`isConstantColorEnabled`](/documentation/AVFoundation/AVCapturePhotoOutput/isConstantColorEnabled) also reverts to <doc://com.apple.documentation/documentation/Swift/false>. If you’ve previously opted in to constant color and then change configurations, you may need to set the value of [`isConstantColorEnabled`](/documentation/AVFoundation/AVCapturePhotoOutput/isConstantColorEnabled) to <doc://com.apple.documentation/documentation/Swift/true> again.

This property is key-value observable.

---

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)