---
title: "livePhotoView(_:didEndPlaybackWith:)"
framework: photosui
role: symbol
role_heading: Instance Method
path: "photosui/phlivephotoviewdelegate/livephotoview(_:didendplaybackwith:)"
---

# livePhotoView(_:didEndPlaybackWith:)

Notifies the delegate when Live Photos playback ends.

## Declaration

```swift
optional func livePhotoView(_ livePhotoView: PHLivePhotoView, didEndPlaybackWith playbackStyle: PHLivePhotoViewPlaybackStyle)
```

## Parameters

- `livePhotoView`: The view that ended playback of Live Photo content.
- `playbackStyle`: The style of playback, indicating whether the content played in full or as a brief preview.

## See Also

### Responding to Live Photos Playback Events

- [livePhotoView(_:canBeginPlaybackWith:)](photosui/phlivephotoviewdelegate/livephotoview(_:canbeginplaybackwith:).md)
- [livePhotoView(_:willBeginPlaybackWith:)](photosui/phlivephotoviewdelegate/livephotoview(_:willbeginplaybackwith:).md)
- [livePhotoView(_:extraMinimumTouchDurationFor:with:)](photosui/phlivephotoviewdelegate/livephotoview(_:extraminimumtouchdurationfor:with:).md)
