<!--
{
  "availability" : [
    "iOS: 10.0.0 -",
    "iPadOS: 10.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.12.0 -",
    "tvOS: 10.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "QuartzCore",
  "identifier" : "/documentation/QuartzCore/CALayer/contentsFormat",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "Core Animation"
    ],
    "preciseIdentifier" : "c:objc(cs)CALayer(py)contentsFormat"
  },
  "title" : "contentsFormat"
}
-->

# contentsFormat

A hint for the desired storage format of the layer contents.

```
var contentsFormat: CALayerContentsFormat { get set }
```

## Discussion

The default value of this property is [`RGBA8Uint`](/documentation/QuartzCore/CALayerContentsFormat/RGBA8Uint).

<doc://com.apple.documentation/documentation/UIKit/UIView> and layer-backed <doc://com.apple.documentation/documentation/AppKit/NSView> objects may change the value to a format appropriate for the current device.

---

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)