KRActivityIndicatorView
is a simple and customizable activity indicator written in Swift.
You can add KRActivityIndicatorView from IB and code.
On HUD => https://github.com/krimpedance/KRProgressHUD
To run the example project, clone the repo, and open KRActivityIndicatorViewDemo.xcodeproj
from the DEMO directory.
or appetize.io
KRActivityIndicatorView is available through CocoaPods and Carthage. To install it, simply add the following line to your Podfile or Cartfile:
# CocoaPods
pod "KRActivityIndicatorView"
# Carthage
github "Krimpedance/KRActivityIndicatorView"
(see sample Xcode project in /Demo)
Usage is almost same as UIActivityIndicatorView.
Show simple KRActivityIndicatorView.
let activityIndicator = KRActivityIndicatorView()
view.addSubview(activityIndicator)
With single color.
KRActivityIndicatorView(colors: [.green])
With gradation color.
KRActivityIndicatorView(colors: [.red, .orange, .white])
activityIndicator.startAnimating()
activityIndicator.stopAnimating()
headColor
- gradient head color.tailColor
- gradient tail color.numberOfDots
- number of indicator dots.duration
- Duration for one rotation.animating
- Animation of activity indicator when it's shownhidesWhenStopped
- calls setHidden
when call stopAnimating()
3.0.8 :
3.0.7 :
KRActivityIndicatorView is available under the MIT license. See the LICENSE file for more info.
link |
Stars: 47 |
Last commit: 2 weeks ago |
Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics