---
title: PHLivePhotoViewContentMode.aspectFit
framework: photosui
role: symbol
role_heading: Case
path: photosui/phlivephotoviewcontentmode/aspectfit
---

# PHLivePhotoViewContentMode.aspectFit

A mode that resizes the content to fit the view’s bounds, while preserving the content’s aspect ratio.

## Declaration

```swift
case aspectFit
```

## See Also

### Content Modes

- [PHLivePhotoViewContentMode.aspectFill](photosui/phlivephotoviewcontentmode/aspectfill.md)
