Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sarunw/swactivityindicatorview
A simple flat activity indicator view.
https://github.com/sarunw/swactivityindicatorview
Last synced: 8 days ago
JSON representation
A simple flat activity indicator view.
- Host: GitHub
- URL: https://github.com/sarunw/swactivityindicatorview
- Owner: sarunw
- License: mit
- Created: 2015-10-20T07:08:23.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-01-01T13:46:44.000Z (almost 8 years ago)
- Last Synced: 2024-10-05T16:45:49.067Z (about 1 month ago)
- Language: Shell
- Size: 2.46 MB
- Stars: 29
- Watchers: 5
- Forks: 6
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# SWActivityIndicatorView
A simple flat activity indicator view.
![alt tag](https://raw.githubusercontent.com/sarunw/SWActivityIndicatorView/master/Documentations/demo.gif)
## Installation
SWActivityIndicatorView is available through [CocoaPods](http://cocoapods.org). To install
it, simply add the following line to your Podfile:```ruby
pod "SWActivityIndicatorView"
```You may also quickly try the SWActivityIndicatorView example project with
```ruby
pod try SWActivityIndicatorView
```## Requirements
Requires iOS 8.0+ and ARC.
## Usage
Basic usage
```swift
let activityIndicatorView = SWActivityIndicatorView(frame: CGRect(x: 0, y: 0, width: 50, height: 50))
self.view.addSubview(activityIndicatorView)
activityIndicatorView.startAnimating()
```If you use Interface Builder, add a UIView to your interface and set Class to `SWActivityIndicatorView`.
### Customization
You can use customize SWActivityIndicatorView via property
```swift
activityIndicatorView.lineWidth = 2
activityIndicatorView.autoStartAnimating = true
activityIndicatorView.hidesWhenStopped = false
activityIndicatorView.color = UIColor.lightGrayColor()
```## Author
[Sarun Wongpatcharapakorn](https://github.com/sarunw) ([@sarunw](https://twitter.com/sarunw))
## License
SWActivityIndicatorView is available under the MIT license. See the LICENSE file for more info.