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

# resizeAspectFill

The content is resized to completely fill the bounds rectangle, while still preserving the aspect of the content. The content is centered in the axis it exceeds.

## Declaration

```swift
static let resizeAspectFill: 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)
- [resizeAspect](quartzcore/calayercontentsgravity/resizeaspect.md)
