---
title: "photoOutput(_:didCapturePhotoFor:)"
framework: avfoundation
role: symbol
role_heading: Instance Method
path: "avfoundation/avcapturephotocapturedelegate/photooutput(_:didcapturephotofor:)"
---

# photoOutput(_:didCapturePhotoFor:)

Notifies the delegate that the photo has been taken.

## Declaration

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

## Parameters

- `output`: The photo output performing the capture.
- `resolvedSettings`: An object describing the settings used for this capture. Match this object’s doc://com.apple.avfoundation/documentation/AVFoundation/AVCapturePhotoSettings/uniqueID value to the doc://com.apple.avfoundation/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.

## Mentioned in

Tracking photo capture progress

## Discussion

Discussion The photo output calls this method as soon as the first step of capture ends—that is, at the end of the photographic exposure time.

## See Also

### Monitoring capture progress

- [photoOutput(_:willBeginCaptureFor:)](avfoundation/avcapturephotocapturedelegate/photooutput(_:willbegincapturefor:).md)
- [photoOutput(_:willCapturePhotoFor:)](avfoundation/avcapturephotocapturedelegate/photooutput(_:willcapturephotofor:).md)
- [photoOutput(_:didFinishCaptureFor:error:)](avfoundation/avcapturephotocapturedelegate/photooutput(_:didfinishcapturefor:error:).md)
