<!--
{
  "availability" : [
    "iOS: 2.0.0 -",
    "iPadOS: 2.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.5.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "QuartzCore",
  "identifier" : "/documentation/QuartzCore/CALayer/contentsAreFlipped()",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Core Animation"
    ],
    "preciseIdentifier" : "c:objc(cs)CALayer(im)contentsAreFlipped"
  },
  "title" : "contentsAreFlipped()"
}
-->

# contentsAreFlipped()

Returns a Boolean indicating whether the layer content is implicitly flipped when rendered.

```
func contentsAreFlipped() -> Bool
```

## Return Value

<doc://com.apple.documentation/documentation/Swift/true> if the layer contents are implicitly flipped when rendered or <doc://com.apple.documentation/documentation/Swift/false> if they are not. This method returns <doc://com.apple.documentation/documentation/Swift/false> by default.

## Discussion

This method provides information about whether the layer’s contents are being flipped during drawing. You should not attempt to override this method and return a different value.

If the layer needs to flip its content, it returns <doc://com.apple.documentation/documentation/Swift/true> from this method and applies a y-flip transform to the graphics context before passing it to the layer’s [`draw(in:)`](/documentation/QuartzCore/CALayer/draw(in:)) method. Similarly, the layer converts any rectangles passed to its [`setNeedsDisplay(_:)`](/documentation/QuartzCore/CALayer/setNeedsDisplay(_:)) into the flipped coordinate space.

---

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)