---
title: contentsAreFlipped()
framework: quartzcore
role: symbol
role_heading: Instance Method
path: quartzcore/calayer/contentsareflipped()
---

# contentsAreFlipped()

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

## Declaration

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

## Return Value

Return Value true if the layer contents are implicitly flipped when rendered or false if they are not. This method returns false by default.

## Discussion

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 true from this method and applies a y-flip transform to the graphics context before passing it to the layer’s draw(in:) method. Similarly, the layer converts any rectangles passed to its setNeedsDisplay(_:) into the flipped coordinate space.

## See Also

### Configuring the layer’s rendering behavior

- [isOpaque](quartzcore/calayer/isopaque.md)
- [edgeAntialiasingMask](quartzcore/calayer/edgeantialiasingmask.md)
- [isGeometryFlipped](quartzcore/calayer/isgeometryflipped.md)
- [drawsAsynchronously](quartzcore/calayer/drawsasynchronously.md)
- [shouldRasterize](quartzcore/calayer/shouldrasterize.md)
- [rasterizationScale](quartzcore/calayer/rasterizationscale.md)
- [contentsFormat](quartzcore/calayer/contentsformat.md)
- [render(in:)](quartzcore/calayer/render(in:).md)
