TestsTested | ✗ |
LangLanguage | SwiftSwift |
License | MIT |
ReleasedLast Release | Oct 2016 |
SPMSupports SPM | ✗ |
Maintained by Alex Littleohn.
A view that allows you to control many aspects of the iOS camera.
This project requires Xcode 7 to run and compiles with swift 2.2
import Celluloid
class ViewController: UIViewController {
let cameraView = CelluloidView()
override func viewDidLoad() {
super.viewDidLoad()
view.addSubview(cameraView)
}
override func viewWillAppear(animated: Bool) {
super.viewWillAppear(animated)
do {
try cameraView.startCamera() { success in }
} catch {
}
}
override func viewWillLayoutSubviews() {
super.viewWillLayoutSubviews()
cameraView.frame = view.bounds
}
}
Celluloid is available under the MIT license. See the LICENSE file for more info.