Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/edgar-zigis/CocoaButton

Interactive UIButton with loading capability
https://github.com/edgar-zigis/CocoaButton

button cocoa ios loading material

Last synced: 3 months ago
JSON representation

Interactive UIButton with loading capability

Awesome Lists containing this project

README

        

# CocoaButton

Stylish UIButton with loading animation capability.
##### Minimum iOS version 11.0

![alt text](https://github.com/edgar-zigis/CocoaButton/blob/master/sample.gif?raw=true)

### Carthage

```
github "edgar-zigis/CocoaButton" ~> 1.0.0
```
### Cocoapods

```
pod 'CocoaButton', '~> 1.0.0'
```
### Usage
```swift
let v = CocoaButton()
v.backgroundColor = UIColor(displayP3Red: 49/255, green: 190/255, blue: 169/255, alpha: 1)
v.shadowColor = UIColor(red: 94/255, green: 186/255, blue: 187/255, alpha: 0.6)
v.startLoading() // -> starts loader
v.stopLoading() // -> stops loader
```
### Remarks
It can be used both programmatically and with storyboards. It has all the features of the UIButton. Samples are available at **CocoaButtonTest**