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

# maxPhotoQualityPrioritization

The highest quality the photo output should prepare to deliver on a capture-by-capture basis.

```
var maxPhotoQualityPrioritization: AVCapturePhotoOutput.QualityPrioritization { get set }
```

## Discussion

[`AVCapturePhotoOutput`](/documentation/AVFoundation/AVCapturePhotoOutput) can apply a variety of techniques to improve photo quality, such as reducing noise, preserving detail in low light, freezing motion, and so on. Some techniques improve image quality at the expense of the shot-to-shot time. Before starting your session, you may set this property to indicate the highest quality prioritization you intend to request when calling the [`capturePhoto(with:delegate:)`](/documentation/AVFoundation/AVCapturePhotoOutput/capturePhoto(with:delegate:)) method.

When configuring an [`AVCapturePhotoSettings`](/documentation/AVFoundation/AVCapturePhotoSettings) object, you can’t exceed this quality prioritization level, but you may select a lower prioritization level that favors speed over quality.

When you attach the photo output to an [`AVCaptureSession`](/documentation/AVFoundation/AVCaptureSession), the default value of this property is [`AVCapturePhotoOutput.QualityPrioritization.balanced`](/documentation/AVFoundation/AVCapturePhotoOutput/QualityPrioritization/balanced). If you instead attach it to an [`AVCaptureMultiCamSession`](/documentation/AVFoundation/AVCaptureMultiCamSession), the default value is [`AVCapturePhotoOutput.QualityPrioritization.speed`](/documentation/AVFoundation/AVCapturePhotoOutput/QualityPrioritization/speed).

> Important:
> Changing the value of this property while the session is running causes the session to be rebuilt. This can be an expensive operation that will interrupt video preview until complete.

---

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)