<!--
{
  "availability" : [
    "iOS: 8.0.0 -",
    "iPadOS: 8.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.11.0 -",
    "tvOS: 10.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "PhotoKit",
  "identifier" : "/documentation/Photos/PHImageContentMode/aspectFit",
  "metadataVersion" : "0.1.0",
  "role" : "Case",
  "symbol" : {
    "kind" : "Case",
    "modules" : [
      "Photos"
    ],
    "preciseIdentifier" : "c:@E@PHImageContentMode@PHImageContentModeAspectFit"
  },
  "title" : "PHImageContentMode.aspectFit"
}
-->

# PHImageContentMode.aspectFit

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

```
case aspectFit
```

## Discussion

Use this option when you want the entire image to be visible, such as when presenting it in a view with the <doc://com.apple.documentation/documentation/UIKit/UIView/ContentMode-swift.enum/scaleAspectFit> content mode.

---

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)