Skip to content

A camera view controller with custom image picker and image cropping. Written in Swift.

License

Notifications You must be signed in to change notification settings

matart15/ALCameraViewController

This branch is 2 commits ahead of, 223 commits behind AlexLittlejohn/ALCameraViewController:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

6623768 · Apr 20, 2016
Apr 2, 2016
Apr 20, 2016
Apr 1, 2016
Mar 27, 2016
Jul 1, 2015
Apr 1, 2016
Feb 17, 2016
Jul 1, 2015
Apr 3, 2016

Repository files navigation

ALCameraViewController

A camera view controller with custom image picker and image cropping. Written in Swift.

camera cropper library permissions

Features

  • Front facing and rear facing camera support
  • Simple and clean look
  • Custom image picker with permission checking
  • Image cropping (square only)
  • Flash light support

Installation & Requirements

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

ALCameraViewController is available on CocoaPods. Add the following to your Podfile:

pod 'ALCameraViewController'

Usage

To use this component couldn't be simpler.

In your viewController

let croppingEnabled = true
let cameraViewController = CameraViewController(croppingEnabled: croppingEnabled) { image in
	// Do something with your image here. 
	// If cropping is enabled this image will be the cropped version
}

presentViewController(cameraViewController, animated: true, completion: nil)

License

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

About

A camera view controller with custom image picker and image cropping. Written in Swift.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Swift 97.9%
  • Ruby 1.3%
  • Objective-C 0.8%