Celluloid 1.0.0

Celluloid 1.0.0

TestsTested
LangLanguage SwiftSwift
License MIT
ReleasedLast Release Oct 2016
SPMSupports SPM

Maintained by Alex Littleohn.



Celluloid 1.0.0

  • By
  • Alex Littlejohn

Celluloid

A view that allows you to control many aspects of the iOS camera.


Installation & Requirements

This project requires Xcode 7 to run and compiles with swift 2.2

Usage

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

License

Celluloid is available under the MIT license. See the LICENSE file for more info.