Skip to content

Latest commit

 

History

History
44 lines (33 loc) · 1.11 KB

README.md

File metadata and controls

44 lines (33 loc) · 1.11 KB

TKAnimatedCheckButton

Platform Language License CocoaPods

Elastic Animated Check Box inspired by https://dribbble.com/shots/1631598-On-Off and http://robb.is/working-on/a-hamburger-button-transition/

Demo GIF Animation

Installation

pod 'TKAnimatedCheckButton'

Usage

This is SubClass of UIButton

self.button = TKAnimatedCheckButton(frame: CGRectMake(0, 0, 44, 44))

How to toggle

func toggle() {
  self.button.checked = !self.button.checked
}

Custom Color

self.button.color = UIColor.redColor().CGColor
self.button.skeletonColor = UIColor.blueColor().CGColor