Camera Manager is an open source Swift library from Imaginary Cloud that makes setting up the iOS camera for use with a custom camera view dead simple.
With Camera Manager configuring the camera is as simple as changing variable values, and there are also helpers to quickly check the current state of various camera options.
This snippet shows how one could switch the camera flash mode:
cameraManager.flashMode = .Off
cameraManager.flashMode = .On
cameraManager.flashMode = .Auto
cameraManager.flashMode = .On
cameraManager.flashMode = .Auto
You can find CameraManager on Github here.
A great library for managing the iOS camera.
Original article: CameraManager – Swift Library That Simplifies Managing The iOS Camera Configuration
©2016 iOS App Dev Libraries, Controls, Tutorials, Examples and Tools. All Rights Reserved.
Reference source: iOS App Dev Libraries, Controls, Tutorials, Examples and Tools