Post marked as solved
Post marked as solved with 1 replies, 421 views
Inside
func picker(_ picker: didFinishPicking results:)
I am trying to obtain a UIImage from a Live Photo. I have parsed the results and filtered by regular still photos and live photos. For the still photos, I already have the UIImage but for the live photos I do not understand how to get from a PHLivePhoto to the PHAsset.
if let livePhoto = object as? PHLivePhoto {
DispatchQueue.main.async {
// what code do I insert here to get from PHLivePhoto to a UIImage? I need to extract a UIImage from a PHLivePhoto
}
}
Thanks for the help in advance!