CameKit helps you add reliable camera to your app quickly. Our open source camera platform provides consistent capture results, service that scales, and endless camera possibilities.
With CameKit you are able to effortlessly do the following:
- ✅ Ability to extend and create custom sessions.
- ✅ Image and video capture seamlessly working with the same preview session.
- ✅ Automatic system permission handling.
- ✅ Automatic preview scaling.
- ✅ Automatic preview/image/video output orientation handling.
- 📷 Ability to set a custom resolution for capturing photos.
- 📹 Ability to set resolution/frame rate for capturing videos.
- 👱 Built-in face detection.
- 📐 Built-in overlay grid.
- 👆 Built-in tap to focus.
- 🔍 Built-in pinch to zoom.
- 📸 Built-in flash toggle for both photos and videos.
- 🤳 Built-in camera position toggle.
- 🖥 Objective-C compatible.
- Swift 4.2
- iOS 9.0
CameKit is available through CocoaPods. To install it, simply add the following line to your Podfile:
platform :ios, '10.0'
pod "CameKit"
Make sure you include the permissions needed for your code to work in the app project Info.plist
file:
<!-- Required for photos and videos -->
<key>NSCameraUsageDescription</key>
<string></string>
<!-- Optional for photos -->
<key>NSMicrophoneUsageDescription</key>
<string></string>
<!-- Optional for the demo app to copy the photos/videos to your photo library -->
<key>NSPhotoLibraryAddUsageDescription</key>
<string></string>
CameKit is available under the MIT license.