An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

          

# ZXLoadingView

[![CI Status](http://img.shields.io/travis/zxin2928/ZXLoadingView.svg?style=flat)](https://travis-ci.org/zxin2928/ZXLoadingView)
[![Version](https://img.shields.io/cocoapods/v/ZXLoadingView.svg?style=flat)](http://cocoapods.org/pods/ZXLoadingView)
[![License](https://img.shields.io/cocoapods/l/ZXLoadingView.svg?style=flat)](http://cocoapods.org/pods/ZXLoadingView)
[![Platform](https://img.shields.io/cocoapods/p/ZXLoadingView.svg?style=flat)](http://cocoapods.org/pods/ZXLoadingView)
[![Join the chat at https://gitter.im/zxin2928/ZXLoadingView](https://badges.gitter.im/zxin2928/ZXLoadingView.svg)](https://gitter.im/zxin2928/ZXLoadingView?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)

![image](https://github.com/zxin2928/ZXLoadingView/blob/master/ZXLoadingView/demo.gif)
## 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.