<!--
{
  "availability" : [
    "iOS: 10.0.0 -",
    "iPadOS: 10.0.0 -",
    "macCatalyst: 14.0.0 -",
    "macOS: 10.15.0 -",
    "tvOS: 17.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AVFoundation",
  "identifier" : "/documentation/AVFoundation/AVCapturePhotoCaptureDelegate/photoOutput(_:willCapturePhotoFor:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "AVFoundation"
    ],
    "preciseIdentifier" : "c:objc(pl)AVCapturePhotoCaptureDelegate(im)captureOutput:willCapturePhotoForResolvedSettings:"
  },
  "title" : "photoOutput(_:willCapturePhotoFor:)"
}
-->

# photoOutput(_:willCapturePhotoFor:)

Notifies the delegate that photo capture is about to occur.

```
optional func photoOutput(_ output: AVCapturePhotoOutput, willCapturePhotoFor resolvedSettings: AVCaptureResolvedPhotoSettings)
```

## Parameters

`output`

The photo output performing the capture.

`resolvedSettings`

An object describing the settings used for this capture. Match this object’s [`uniqueID`](/documentation/AVFoundation/AVCapturePhotoSettings/uniqueID) value to the [`uniqueID`](/documentation/AVFoundation/AVCapturePhotoSettings/uniqueID) property of the photo settings object you initiated capture with to determine which capture request this delegate call corresponds to. You can also use this object to find out which values the photo output has chosen for automatic settings.

## Discussion

The photo output calls this method as close as possible to the initial moment of capture. If the shutter sound is enabled, this call occurs immediately after the photo output begins playing the shutter sound.

> Note:
> Live Photo capture disables the shutter sound. In some regions, the device’s mute switch can disable the shutter sound.

---

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)