https://github.com/zxincrash/zxloadingview
ðZXLoadingView is an iOS progress-activity
https://github.com/zxincrash/zxloadingview
activity loading loadingview mmmaterialdesignspinner spinner spinner-frames spinner-icon spinnerlikeios spinners spinnerview swift-4 swift4
Last synced: 22 days ago
JSON representation
ðZXLoadingView is an iOS progress-activity
- Host: GitHub
- URL: https://github.com/zxincrash/zxloadingview
- Owner: zxincrash
- License: mit
- Created: 2017-11-17T22:06:48.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-11-30T05:37:27.000Z (over 8 years ago)
- Last Synced: 2025-03-24T03:04:02.898Z (about 1 year ago)
- Topics: activity, loading, loadingview, mmmaterialdesignspinner, spinner, spinner-frames, spinner-icon, spinnerlikeios, spinners, spinnerview, swift-4, swift4
- Language: Swift
- Homepage:
- Size: 1.28 MB
- Stars: 14
- Watchers: 7
- Forks: 7
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ZXLoadingView
[](https://travis-ci.org/zxin2928/ZXLoadingView)
[](http://cocoapods.org/pods/ZXLoadingView)
[](http://cocoapods.org/pods/ZXLoadingView)
[](http://cocoapods.org/pods/ZXLoadingView)
[](https://gitter.im/zxin2928/ZXLoadingView?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)

## Example
To run the example project directory.
``` swift
// Initialize the progress view
let loadingView:ZXLoadingView = ZXLoadingView.init(frame:CGRect.init(x: self.view.center.x, y: self.view.center.y, width: 100, height: 100))
// Set the line width of the loadingView
loadingView.lineWidth = 2.0
// Set the tint color of the loadingView
loadingView.tintColor = .red
// Add it as a subview
self.view.addSubview(loadingView)
...
// Start & stop animations
loadingView.startAnimating()
loadingView.stopAnimating()
```
Also Support Xib & StoryBoard
The `lineWidth` and `tintColor` properties can even be set after animating has been started, which you can observe in the included example project.
## Requirements
swift4.0
## Installation
ZXLoadingView is available through [CocoaPods](http://cocoapods.org). To install
it, simply add the following line to your Podfile:
```ruby
pod 'ZXLoadingView'
```
## Author
zxin2928, zxin2928@icloud.com
## License
ZXLoadingView is available under the MIT license. See the LICENSE file for more info.