<!--
{
  "availability" : [
    "iOS: 16.0.0 -",
    "iPadOS: 16.0.0 -",
    "macCatalyst: 16.0.0 -",
    "macOS: 13.0.0 -",
    "tvOS: 17.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AVFoundation",
  "identifier" : "/documentation/AVFoundation/AVCapturePhotoSettings/maxPhotoDimensions",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "AVFoundation"
    ],
    "preciseIdentifier" : "c:objc(cs)AVCapturePhotoSettings(py)maxPhotoDimensions"
  },
  "title" : "maxPhotoDimensions"
}
-->

# maxPhotoDimensions

The maximum resolution of the photo to capture.

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

## 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`](/documentation/AVFoundation/AVCaptureDevice/Format/supportedMaxPhotoDimensions), and be equal to or smaller than the value of the photo outputs [`maxPhotoDimensions`](/documentation/AVFoundation/AVCapturePhotoOutput/maxPhotoDimensions).

This property defaults to the smallest dimensions returned by [`supportedMaxPhotoDimensions`](/documentation/AVFoundation/AVCaptureDevice/Format/supportedMaxPhotoDimensions).

---

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)