---
title: PHImageContentMode.aspectFit
framework: photos
role: symbol
role_heading: Case
path: photos/phimagecontentmode/aspectfit
---

# PHImageContentMode.aspectFit

Scales the image so that its larger dimension fits the target size.

## Declaration

```swift
case aspectFit
```

## Discussion

Discussion Use this option when you want the entire image to be visible, such as when presenting it in a view with the UIView.ContentMode.scaleAspectFit content mode.

## See Also

### Constants

- [default](photos/phimagecontentmode/default.md)
- [PHImageContentMode.aspectFill](photos/phimagecontentmode/aspectfill.md)
