Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/takuoka/TKAnimatedCheckButton
Animated Check Button inspired by http://robb.is/working-on/a-hamburger-button-transition/ and https://dribbble.com/shots/1631598-On-Off
https://github.com/takuoka/TKAnimatedCheckButton
Last synced: 3 months ago
JSON representation
Animated Check Button inspired by http://robb.is/working-on/a-hamburger-button-transition/ and https://dribbble.com/shots/1631598-On-Off
- Host: GitHub
- URL: https://github.com/takuoka/TKAnimatedCheckButton
- Owner: takuoka
- License: mit
- Created: 2015-08-06T01:51:33.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-08-28T05:26:25.000Z (about 9 years ago)
- Last Synced: 2024-07-21T17:51:19.903Z (4 months ago)
- Language: Swift
- Homepage:
- Size: 7.14 MB
- Stars: 371
- Watchers: 9
- Forks: 19
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# TKAnimatedCheckButton
[![Platform](http://img.shields.io/badge/platform-ios-blue.svg?style=flat
)](https://developer.apple.com/iphone/index.action)
[![Language](http://img.shields.io/badge/language-swift-brightgreen.svg?style=flat
)](https://developer.apple.com/swift)
[![License](http://img.shields.io/badge/license-MIT-lightgrey.svg?style=flat
)](http://mit-license.org)
[![CocoaPods](https://img.shields.io/cocoapods/v/TKAnimatedCheckButton.svg)]()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](https://raw.githubusercontent.com/entotsu/TKAnimatedCheckButton/master/demo.gif "Demo GIF Animation")
# Installation
```
pod 'TKAnimatedCheckButton'
```# Usage
## This is SubClass of UIButton
``` swift
self.button = TKAnimatedCheckButton(frame: CGRectMake(0, 0, 44, 44))
```## How to toggle
``` swift
func toggle() {
self.button.checked = !self.button.checked
}
```
## Custom Color
``` swift
self.button.color = UIColor.redColor().CGColor
self.button.skeletonColor = UIColor.blueColor().CGColor
```