Latest 1.0.0
Homepage https://github.com/immago/DBCameraButton
License Apache-2.0
Platforms ios 9.0
Authors

podver podver podver

Customizable, IB_DESIGNABLE, iOS style camera button.

image

Installation

CocoaPods

pod 'DBCameraButton'

If you have IB Designables render error add use_frameworks! to your pod file.
image

Manual

Copy DBCameraButton.h and DBCameraButton.m from Classes directory to your project.

Usage

Create DBCameraButton button (subclass of UIButton) without title in storyboard or programmatically. No additional configuration needed.

Properties

CGFloat animationDuration - duration of animation
BOOL isRecording - if YES display "stop" square, else display "capture" circle
UIColor *circleColor - color of "capture" circle
UIColor *squareColor - color of "stop" square
UIColor *outerRingColor - color of outer ring
UIColor *disabledColor - color in disabled state
CGFloat outerRingWidth - width of outer ring
CGFloat outerRingSpacing - space between outer ring and inner shape
CGFloat squareCornerRadius - corner radius of "stop" square
BOOL autoStateChange - change state when button pressed. Default YES. Set NO to manual state change.
CGFloat margin - margin to rect bounds.

Latest podspec

{
    "name": "DBCameraButton",
    "version": "1.0.0",
    "summary": "Customizable, IB_DESIGNABLE, iOS style camera button.",
    "description": "u0421amera button in the style of a standard iOS camera. Customizable, IB_DESIGNABLE. UIButton category (extension).",
    "homepage": "https://github.com/immago/DBCameraButton",
    "screenshots": "https://user-images.githubusercontent.com/5740772/29002628-5ec56d38-7aaf-11e7-85a4-4810e918784f.gif",
    "license": {
        "type": "Apache-2.0",
        "file": "LICENSE"
    },
    "authors": {
        "Dmitry Byankin": "[email protected]"
    },
    "source": {
        "git": "https://github.com/immago/DBCameraButton.git",
        "tag": "1.0.0"
    },
    "platforms": {
        "ios": "9.0"
    },
    "source_files": "Classes/**/*"
}

Pin It on Pinterest

Share This