react-native-camera-v4
react-native-camera-v4 copied to clipboard
Swift Rewrite
Rewrite the native code for core
and barcode
in Swift.
Exclude any unused code (face detection, etc.), clean up the surface API for ease of usage and review portability with the Android API.
Swiftify can help a lot
@MarcoScabbiolo while you are at it, you may want to consider also removing some of the deprecated API calls. More specifically, captureStillImageAsynchronouslyFromConnection
is deprecated, and so most of the classes related to it (https://developer.apple.com/documentation/avfoundation/avcapturestillimageoutput?language=objc).
Not swift, but here's an example of the code migration for the new API: https://stackoverflow.com/questions/39872528/ios-10-objective-c-how-to-implement-avcapturephotooutput-to-capture-image
Is there a plan to remove writeImageDataToSavedPhotosAlbum
? from the deprecated ALAssetsLibrary
? Can we help?
v4 was released with what seems Android rewrite, but not iOS rewrite, am I right?
@raimonkh Please see: https://github.com/react-native-camera/react-native-camera/issues/3000#issuecomment-933697104 . If anyone wants to keep going with the v4, its all yours, but know that our vision for it is already achieved in react-native-vision-camera
Thanks @MarcoScabbiolo 👍