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

# resizeAspect

The content is resized to fit the bounds rectangle, preserving the aspect of the content. If the content does not completely fill the bounds rectangle, the content is centered in the partial axis.

## Declaration

```swift
static let resizeAspect: CALayerContentsGravity
```

## See Also

### Constants

- [center](quartzcore/calayercontentsgravity/center.md)
- [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)
- [resizeAspectFill](quartzcore/calayercontentsgravity/resizeaspectfill.md)
