Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/edgar-zigis/CocoaButton
- Owner: edgar-zigis
- License: mit
- Created: 2019-10-17T20:33:09.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2021-10-26T19:17:54.000Z (about 3 years ago)
- Last Synced: 2024-06-15T01:48:51.345Z (5 months ago)
- Topics: button, cocoa, ios, loading, material
- Language: Swift
- Homepage:
- Size: 959 KB
- Stars: 23
- Watchers: 3
- Forks: 6
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
- awesome-ios - CocoaButton - Interactive UIButton with loading capability. [•](https://raw.githubusercontent.com/edgar-zigis/CocoaButton/master/sample.gif) (Content / Button)
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**