<!--
{
  "availability" : [
    "macOS: 10.12.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "PhotoKit",
  "identifier" : "/documentation/PhotosUI/PHLivePhotoViewContentMode/aspectFit",
  "metadataVersion" : "0.1.0",
  "role" : "Case",
  "symbol" : {
    "kind" : "Case",
    "modules" : [
      "PhotosUI"
    ],
    "preciseIdentifier" : "c:@E@PHLivePhotoViewContentMode@PHLivePhotoViewContentModeAspectFit"
  },
  "title" : "PHLivePhotoViewContentMode.aspectFit"
}
-->

# PHLivePhotoViewContentMode.aspectFit

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

```
case aspectFit
```

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)