---
title: center
framework: quartzcore
role: symbol
role_heading: Type Property
path: quartzcore/calayercontentsgravity/center
---

# center

The content is horizontally and vertically centered in the bounds rectangle.

## Declaration

```swift
static let center: CALayerContentsGravity
```

## See Also

### Constants

- [top](quartzcore/calayercontentsgravity/top.md)
- [bottom](quartzcore/calayercontentsgravity/bottom.md)
- [left](quartzcore/calayercontentsgravity/left.md)
- [right](quartzcore/calayercontentsgravity/right.md)
- [topLeft](quartzcore/calayercontentsgravity/topleft.md)
- [topRight](quartzcore/calayercontentsgravity/topright.md)
- [bottomLeft](quartzcore/calayercontentsgravity/bottomleft.md)
- [bottomRight](quartzcore/calayercontentsgravity/bottomright.md)
- [resize](quartzcore/calayercontentsgravity/resize.md)
- [resizeAspect](quartzcore/calayercontentsgravity/resizeaspect.md)
- [resizeAspectFill](quartzcore/calayercontentsgravity/resizeaspectfill.md)
