eonist / HybridCamera

Video and photo camera for iOS
MIT License
210 stars 34 forks source link
avfoundation camera instagram ios photo snapchat video

Lang platform codebeat badge Reviewed by Hound .github/workflows/swift.yml

img

Features:

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 📞

Why use this camera framework

Install:

IMPORTANT: Make sure info.plist has these variables

Privacy - Microphone Usage Description   
Privacy - Camera Usage Description  
Privacy - Photo Library Additions Usage Description  

Example:

img

Example code:

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)")
}

Todo:

Contributors: