A Loading indicator view
ASSpinnerView is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'ASSpinnerView'
To start use it, import the library in your project
import ASSpinnerView
@IBOutlet weak var spinnerView: ASSpinnerView!
spinnerView1.spinnerLineWidth = 10
spinnerView1.spinnerDuration = 0.5
spinnerView1.spinnerStrokeColor = UIColor.blue.cgColor
// Change width
spinnerView2.spinnerLineWidth = 3
// Change spinner duration ranges between (0.0 ~ 1.0)
spinnerView2.spinnerDuration = 0.7
// Change spinner color
spinnerView2.spinnerStrokeColor = UIColor.green.cgColor
To try the example project:
run pod try ASSpinnerView
in your ternimal
or
clone the repo, and run pod install
from the Example directory first.
- iOS 9.0+
- Xcode 9+
- Swift 3.2+
If you have some ideas on how to improve the framework, Fork it, implement your changes and create that pull request already 😉.
All contributions are welcome 🤗.
Built with 💙 by AhmedAskar
ASSpinnerView is available under the MIT license. See the LICENSE file for more info.