---
title: maxPhotoDimensions
framework: avfoundation
role: symbol
role_heading: Instance Property
path: avfoundation/avcapturephotosettings/maxphotodimensions
---

# maxPhotoDimensions

The maximum resolution of the photo to capture.

## Declaration

```swift
var maxPhotoDimensions: CMVideoDimensions { get set }
```

## Discussion

Discussion Setting a value specifies a maximum for the captured image. The dimensions must match one of the dimensions returned by capture device’s active format’s supportedMaxPhotoDimensions, and be equal to or smaller than the value of the photo outputs maxPhotoDimensions. This property defaults to the smallest dimensions returned by supportedMaxPhotoDimensions.

## See Also

### Configuring photo settings

- [flashMode](avfoundation/avcapturephotosettings/flashmode.md)
- [isAutoRedEyeReductionEnabled](avfoundation/avcapturephotosettings/isautoredeyereductionenabled.md)
- [photoQualityPrioritization](avfoundation/avcapturephotosettings/photoqualityprioritization.md)
- [isCameraCalibrationDataDeliveryEnabled](avfoundation/avcapturephotosettings/iscameracalibrationdatadeliveryenabled.md)
- [isAutoContentAwareDistortionCorrectionEnabled](avfoundation/avcapturephotosettings/isautocontentawaredistortioncorrectionenabled.md)
- [isAutoVirtualDeviceFusionEnabled](avfoundation/avcapturephotosettings/isautovirtualdevicefusionenabled.md)
- [virtualDeviceConstituentPhotoDeliveryEnabledDevices](avfoundation/avcapturephotosettings/virtualdeviceconstituentphotodeliveryenableddevices.md)
- [isDualCameraDualPhotoDeliveryEnabled](avfoundation/avcapturephotosettings/isdualcameradualphotodeliveryenabled.md)
- [isAutoDualCameraFusionEnabled](avfoundation/avcapturephotosettings/isautodualcamerafusionenabled.md)
- [isAutoStillImageStabilizationEnabled](avfoundation/avcapturephotosettings/isautostillimagestabilizationenabled.md)
- [isHighResolutionPhotoEnabled](avfoundation/avcapturephotosettings/ishighresolutionphotoenabled.md)
