All Projects → ykyouhei → Kyshutterbutton

ykyouhei / Kyshutterbutton

Licence: mit
KYShutterButton is a custom button that is similar to the shutter button of the camera app

Programming Languages

swift
15916 projects

Projects that are alternatives of or similar to Kyshutterbutton

Cameramanager
Simple Swift class to provide all the configurations you need to create custom camera view in your app
Stars: ✭ 1,130 (+285.67%)
Mutual labels:  camera, cocoapods, carthage
Swiftprogresshud
📦 SwiftProgressHUD is a user-friendly pure swift HUD. 支持Cocoapods 及 Carthage
Stars: ✭ 290 (-1.02%)
Mutual labels:  cocoapods, carthage, pod
Kydrawercontroller
Side Drawer Navigation Controller similar to Android
Stars: ✭ 632 (+115.7%)
Mutual labels:  cocoapods, carthage, pod
Irldocumentscanner
A drop-in Objective-C ViewController that will Automatically scan a document for you you.
Stars: ✭ 172 (-41.3%)
Mutual labels:  camera, cocoapods, carthage
Mtbbarcodescanner
A lightweight, easy-to-use barcode scanning library for iOS 8+
Stars: ✭ 1,085 (+270.31%)
Mutual labels:  camera, cocoapods, carthage
Icimulator
Simulate camera functions on iOS Simulator with images, videos, or your MacBook Camera.
Stars: ✭ 177 (-39.59%)
Mutual labels:  camera, cocoapods, carthage
Ezswiftextensions
😏 How Swift standard types and classes were supposed to work.
Stars: ✭ 2,911 (+893.52%)
Mutual labels:  cocoapods, carthage
Xcode One Dark
Atom One Dark theme for Xcode
Stars: ✭ 273 (-6.83%)
Mutual labels:  cocoapods, carthage
Passwordtextfield
A custom TextField with a switchable icon which shows or hides the password and enforce good password policies
Stars: ✭ 281 (-4.1%)
Mutual labels:  cocoapods, carthage
Gemini
Gemini is rich scroll based animation framework for iOS, written in Swift.
Stars: ✭ 2,965 (+911.95%)
Mutual labels:  cocoapods, carthage
Animoji
Animoji Generator 🦊
Stars: ✭ 277 (-5.46%)
Mutual labels:  cocoapods, carthage
Cocoapods Pod Merge
Cocoapods plugin to merge pods used by your Xcode project, reducing the number of dynamic frameworks your app has to load on startup
Stars: ✭ 276 (-5.8%)
Mutual labels:  cocoapods, pod
Ribbon
🎀 A simple cross-platform toolbar/custom input accessory view library for iOS & macOS.
Stars: ✭ 273 (-6.83%)
Mutual labels:  cocoapods, carthage
Progress.swift
⌛️ Add beautiful progress bars to your loops.
Stars: ✭ 265 (-9.56%)
Mutual labels:  cocoapods, carthage
Imageloaderswift
A lightweight and fast image loader for iOS written in Swift.
Stars: ✭ 290 (-1.02%)
Mutual labels:  cocoapods, carthage
Yoshi
A convenient wrapper around the UI code that is often needed for displaying debug menus.
Stars: ✭ 263 (-10.24%)
Mutual labels:  cocoapods, carthage
Uxmpdfkit
An iOS PDF viewer and annotator written in Swift that can be embedded into any application.
Stars: ✭ 260 (-11.26%)
Mutual labels:  cocoapods, carthage
Stepperview
SwiftUI iOS component for Step Indications.
Stars: ✭ 281 (-4.1%)
Mutual labels:  cocoapods, carthage
Realreachability
We need to observe the REAL reachability of network. That's what RealReachability do.
Stars: ✭ 3,042 (+938.23%)
Mutual labels:  cocoapods, carthage
Serpent
A protocol to serialize Swift structs and classes for encoding and decoding.
Stars: ✭ 281 (-4.1%)
Mutual labels:  cocoapods, carthage

KYShutterButton

Carthage compatible Pod Version Pod Platform Pod License Swift version

KYShutterButton is a custom button that is similar to the shutter button of the camera app

  • IBDesignable, IBInspectable Support

sample1.gif sample2.gif

Installation

CocoaPods

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

pod 'KYShutterButton'

Manually

Just add the Classes folder to your project.

Usage

(see sample Xcode project in /Example)

Code

let shutterButton = KYShutterButton(
	frame: CGRectMake(20, 20, 100, 100),
    shutterType: .Normal,
    buttonColor: UIColor.redColor()
)
shutterButton.addTarget(self,
    action: "didTapButton:",
    forControlEvents: .TouchUpInside
)
/* Custom
shutterButton.arcColor      = UIColor.greenColor()
shutterButton.progressColor = UIColor.yellowColor()
*/
view.addSubview(shutterButton)


func didTapButton(sender: KYShutterButton) {
    switch sender.buttonState {
    case .Normal:
        sender.buttonState = .Recording
    case .Recording:
        sender.buttonState = .Normal
    }
}

Storyboard

sample3.gif

License

This code is distributed under the terms and conditions of the MIT license.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].