- December 30, 2024
- Mins Read
Description | |
---|---|
Records video | 🎥 |
takes photos | 📷 |
Flash on/off | ⚡ |
Front / Back camera | ↕️ |
Hold to record video | ✊ |
Tap to take photo | 👇 |
Tap to focus / set exposure | 🔎 |
Pinch to zoom | 👌 |
Looping video/photo preview | 🔁 |
Share button | 🔗 |
Programatic UI | 🤖 |
Doesn’t stop Spotify | 🎶 |
Stores files in temporary | 💾 |
Throw oriented code | 💣 |
Persistent app authorisation | 🚫 |
Animated record button | 🔴 |
Callback based | 📞 |
In order to keep things simple, The UI is CGRect based. Use your own Autolayout distro like SnapKit etc when adding additional UI
.package(url: "https://github.com/eonist/HybridCamera.git", .branch("master"))
HybridCamera.xcodeproj
IMPORTANT: Make sure info.plist has these variables
Privacy – Microphone Usage Description
Privacy – Camera Usage Description
Privacy – Photo Library Additions Usage Description
self.view = HybridCamView()
view.camView.onPhotoCaptureComplete = { (image: UIImage?, url: URL?, error: Error?) in
Swift.print(“On photo capture complete \(url)”)
}
hybridCamView.camView.onVideoCaptureComplete = { (url: URL?, error: Error?) in
Swift.print(“On Video capture complete \(url)”)
}