https://github.com/sarunw/swactivityindicatorview
A simple flat activity indicator view.
https://github.com/sarunw/swactivityindicatorview
Last synced: 2 months 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 (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-01-01T13:46:44.000Z (over 8 years ago)
- Last Synced: 2025-03-22T11:51:11.446Z (3 months ago)
- Language: Shell
- Size: 2.46 MB
- Stars: 27
- Watchers: 4
- 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.

## 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.