DKCamera alternatives and similar libraries
Based on the "Camera" category.
Alternatively, view DKCamera alternatives based on common mentions on social networks and blogs.
-
SCRecorder
iOS camera engine with Vine-like tap to record, animatable filters, slow motion, segments editing -
PBJVision
DISCONTINUED. πΈ iOS Media Capture β features touch-to-record video, slow motion, and photography -
ALCameraViewController
DISCONTINUED. A camera view controller with custom image picker and image cropping. -
TGCameraViewController
DISCONTINUED. Custom camera with AVFoundation. Beautiful, light and easy to integrate with iOS projects. -
CameraManager
Simple Swift class to provide all the configurations you need to create custom camera view in your app -
Cool-iOS-Camera
A fully customisable and modern camera implementation for iOS made with AVFoundation. -
RSBarcodes_Swift
1D and 2D barcodes reader and generators for iOS 8 with delightful controls. Now Swift. -
Lumina
A camera designed in Swift for easily integrating CoreML models - as well as image streaming, QR/Barcode detection, and many other features -
CameraEngine
DISCONTINUED. ππ· Camera engine for iOS, written in Swift, above AVFoundation. π -
CameraKit-iOS
Library for iOS Camera API. Massively increase performance and ease of use within your next iOS Project. -
JVTImageFilePicker
Easy and beautiful way for a user to pick content, files or images. Written in Objective C
InfluxDB - Purpose built for real-time analytics at any scale.
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of DKCamera or a related project?
README
DKCamera
Description
A light weight & simple & easy camera for iOS by Swift. It uses CoreMotion
framework to detect device orientation, so the screen-orientation lock will be ignored(Perfect orientation handling). And it has two other purposes:
- Can be presenting or pushing or Integrating.
- Suppressing the warning "Snapshotting a view that has not been rendered results in an empty snapshot. Ensure your view has been rendered at least once before snapshotting or snapshot after screen updates."(It seems a bug in iOS 8).
- Compatible with iOS 11 and iPhone X
Requirements
- Xcode 9
- Swift 3.2 & 4.2
Installation
Swift Package Manager
In progress
SPM only support source code, which means it cannot include resources such as images.
iOS 8 and newer
DKCamera is available on CocoaPods. Simply add the following line to your podfile:
# For latest release in cocoapods
pod 'DKCamera'
iOS 7.x
Please use the
1.2.11
tag. To use Swift libraries on apps that support iOS 7, you must manually copy the files into your application project. CocoaPods only supports Swift on OS X 10.9 and newer, and iOS 8 and newer.
Easy to use
let camera = DKCamera()
camera.didCancel = {
print("didCancel")
self.dismiss(animated: true, completion: nil)
}
camera.didFinishCapturingImage = { (image: UIImage?, metadata: [AnyHashable : Any]?) in
print("didFinishCapturingImage")
self.dismiss(animated: true, completion: nil)
self.imageView?.image = image
}
self.present(camera, animated: true, completion: nil)
You also can use these APIs:
open var cameraOverlayView: UIView?
/// The flashModel will to be remembered to next use.
open var flashMode:AVCaptureFlashMode!
open class func isAvailable() -> Bool
/// Determines whether or not the rotation is enabled.
open var allowsRotate = false
/// set to NO to hide all standard camera UI. default is YES.
open var showsCameraControls = true
open var defaultCaptureDevice = DKCameraDeviceSourceType.rear
/// Photos will be tagged with the location where they are taken.
/// Must add the "Privacy - Location XXX" tag to your Info.plist.
open var containsGPSInMetadata = false
/// Notify the listener of the detected faces in the preview frame.
open var onFaceDetection: ((_ faces: [AVMetadataFaceObject]) -> Void)?
If you are going to add a full-screen view as
cameraOverlayView
, maybe you should use theDKCameraPassthroughView
or its subclass that have overriden thehitTest
method in order to the event passes through to the expected view.// DKCamera.swift public class DKCameraPassthroughView: UIView { public override func hitTest(point: CGPoint, withEvent event: UIEvent?) -> UIView? { let hitTestingView = super.hitTest(point, withEvent: event) return hitTestingView == self ? nil : hitTestingView } }
License
DKCamera is released under the MIT license. See LICENSE for details.
*Note that all licence references and agreements mentioned in the DKCamera README section above
are relevant to that project's source code only.