nstudio / nativescript-camera-plus

MIT License
79 stars 50 forks source link

SwiftyCam build error with iOS 15 Beta #166

Closed SinghNeelabh closed 2 years ago

SinghNeelabh commented 3 years ago

Hi,

We are using camera-plus plugin (3.4.0) in our app. Everything works for now, but when I tested it with iOS 15 Beta, it is throwing error: Value of type 'CGImage' has no member 'takeUnretainedValue' at the following code:

@available(iOS 11.0, *) func photoOutput(_ output: AVCapturePhotoOutput, didFinishProcessingPhoto photo: AVCapturePhoto, error: Error?) { if let cgImage = photo.cgImageRepresentation()?.takeUnretainedValue()

in pod SwiftyCam - SwiftyCamViewController (https://github.com/NathanWalker/SwiftyCam/blob/feature/swift-4.2/Source/SwiftyCamViewController.swift)

Could you please help with this.

SinghNeelabh commented 2 years ago

Thanks everyone for the fix. I can build and run on iOS 15 now.