Hi there, when I try to use this on Vision OS I get 'copyCGImage(at:actualTime:)' is unavailable in visionOS coming from this code:
#if !os(macOS)
var currentImage: UIImage? {
guard
let playerItem = currentItem,
let cgImage = try? AVAssetImageGenerator(asset: playerItem.asset).copyCGImage(at: currentTime(), actualTime: nil)
else { return nil }
return UIImage(cgImage: cgImage)
}
#else
Could be nice to add support for it, thank you!
Hi there, when I try to use this on Vision OS I get
'copyCGImage(at:actualTime:)' is unavailable in visionOScoming from this code:Could be nice to add support for it, thank you!