Latest 2.4
Homepage https://github.com/AlexLittlejohn/ALCameraViewController
License MIT
Platforms ios 9.0, requires ARC
Authors

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 8 to run and compiles with swift 3.0

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

pod 'ALCameraViewController'

Usage

To use this component couldn’t be simpler.
Add import ALCameraViewController to the top of you controller file.

In the viewController


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

    self?.dismiss(animated: true, completion: nil)
}

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

License

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

Latest podspec

{
    "name": "ALCameraViewControllerExtended",
    "version": "2.4",
    "summary": "A camera view controller with custom image picker and image cropping. Written in Swift.",
    "source": {
        "git": "https://github.com/beat843796/ALCameraViewController.git",
        "tag": "2.4"
    },
    "requires_arc": true,
    "platforms": {
        "ios": "9.0"
    },
    "license": "MIT",
    "source_files": "ALCameraViewController/*.{swift}",
    "resources": [
        "ALCameraViewController/CameraViewAssets.xcassets",
        "ALCameraViewController/en.lproj/Localizable.strings",
        "ALCameraViewController/de.lproj/Localizable.strings"
    ],
    "homepage": "https://github.com/AlexLittlejohn/ALCameraViewController",
    "authors": {
        "Alex Littlejohn": "[email protected]"
    }
}

Pin It on Pinterest

Share This