A displayable representation of a Live Photo—a picture that includes motion and sound from the moments just before and after its capture.
- iOS 9.1+
- macOS 10.12+
- UIKit for Mac 13.0+Beta
- tvOS 10+
In iOS and tvOS, you can use this class to reference Live Photos from the user’s library (fetched with the
PHImage classes), to load displayable Live Photo objects from data obtained elsewhere (such as pictures shared through a social network), and to assign Live Photos to
PHLive objects for display.
In iOS, tvOS, and macOS, you can use this class to display edits in progress for Live Photo content in a photo editing extension.
PHLive class serves in much the same role for Live Photos as the
NSImage class serves for static images. A
NSImage object represents not the data file an image is loaded from, but instead a ready-to-use image that can be displayed in a view—similarly, a
PHLive object represents a Live Photo ready to display with motion and sound using a
PHLive object, not an entry in the Photos library or the data resources that constitute a Live Photo. (To work with Live Photos as elements of the Photos library, use the
PHAsset class. To work with the data files that constitute a Live Photo, use the