Instance Method


Begins playback of Live Photo content in the view.


func startPlayback(with playbackStyle: PHLivePhotoViewPlaybackStyle)



An option for how much of the Live Photo’s motion and sound content to play. See PHLivePhotoViewPlaybackStyle.


Use the playbackStyle parameter to choose whether to play the full motion and sound content of the Live Photo or only a brief section.

Typically, an app does not need to directly control playback, because a Live Photo view provides interactive playback control. Use this method only when non-interactive playback is appropriate—for example, to briefly animate the content to indicate that a view contains a Live Photo rather than a still image.

See Also

Manually Playing Live Photo Content

func stopPlayback()

Ends playback of Live Photo content in the view.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software