Latest 0.1.0
License MIT
Platforms ios 8.0

Implementing this camera is as easy as ABC.

This is a full-screen camera view controller that allows you to customize what buttons you want to include and the location of each of them.

Included are functions for flash, switching the camera between front and back, and focusing the camera. Alongside these are default button images for Flash and Switch Camera.

However, you also have the option of adding your own custom button images if desired, as well as your own buttons with custom functions.

This dependency skips the hassle of AVFoundation, and allows you to implement capturing a photo in a clean and simple way!

Installation with CocoaPods

Makre sure you’re on the correct repo branch: ‘ABCameraViewCocoaPod’

Install ABCameraView with: CocoaPods


pod 'ABCameraView'

How to use

To use it you just add a ViewController of class ABCameraViewController to your storyboard to use.

To add a button, use the addButton function with the position and image you want to use
(in this example, we are adding the flash button):

topLeftFlashButton = addButton(Position.topLeft, imageName: "flash-off-button")

For the position parameter, select your desired position of the following:


To add a target to your button (in this example, we are calling the ‘turnFlashOn’ action):

topLeftFlashButton?.addTarget(self, action: #selector(turnFlashOn), for: UIControlEvents.touchUpInside)

If you want to use the default switch camera button, call the ‘changeCamera’ action:

topRightSwitchButton = addButton(Position.topRight, imageName: "switch-camera-button")
topRightSwitchButton?.addTarget(self, action: #selector(changeCamera), for: UIControlEvents.touchUpInside)

The captured image view is in the ‘capturedImage’ variable.


Supports iOS 8 and above. Xcode 7.0 is required to build the latest code written in Swift 3.0.

Latest podspec

    "name": "ABCameraView",
    "version": "0.1.0",
    "summary": "Simple and customizeable camera view for capturing a photo.",
    "description": "This is a fullscreen camera view controller that allows you to customize what buttons you want to include and the location of them.",
    "homepage": "",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    "authors": {
        "Christine Munar": "[email protected]"
    "source": {
        "git": "",
        "tag": "0.1.0"
    "platforms": {
        "ios": "8.0"
    "source_files": "ABCameraView/Classes/**/*",
    "pushed_with_swift_version": "echo "3.0" > .swift-version"

Pin It on Pinterest

Share This