---
title: PHImageContentMode
framework: photos
role: symbol
role_heading: Enumeration
path: photos/phimagecontentmode
---

# PHImageContentMode

Options for fitting an image’s aspect ratio to a requested size, used by the requestImage(for:targetSize:contentMode:options:resultHandler:) method.

## Declaration

```swift
enum PHImageContentMode
```

## Overview

Overview With either option, the resulting image may not exactly match the target size, depending on the deliveryMode and resizeMode properties of the image request. To serve your request more quickly, Photos may provide a slightly larger image—one that it can generate more easily or one that is already cached.

## Topics

### Constants

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

### Initializers

- [init(rawValue:)](photos/phimagecontentmode/init(rawvalue:).md)

## Relationships

### Conforms To

- [BitwiseCopyable](swift/bitwisecopyable.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [RawRepresentable](swift/rawrepresentable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Constants

- [Image Result Info Keys](photokit/image-result-info-keys.md)
