• Stars
    star
    369
  • Rank 112,434 (Top 3 %)
  • Language
    Swift
  • License
    MIT License
  • Created almost 9 years ago
  • Updated almost 9 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

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

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