- iOS 8.0+
- Xcode 8.0+
- Swift 3.0+
if not installed yet install cocoaPods with the following command
$ gem install cocoapods
CocoaPods 1.1.0+ is required to build CustomLoader
To integrate CustomLoader into your Xcode project using CocoaPods, specify it in your Podfile:
platform :ios, '8.0'
use_frameworks!
target '<Your Target Name>' do
pod 'CustomLoader'
end
This will install the latest version of CustomLoader
Apply your configuration with the following command:
$ pod install
import CustomLoader
LoadingView.standardProgressBox.show(inView: view)view.removeLoadingViews(animated:true)publicextensionProgressRingView{publicstaticvarappProgressRing:ProgressRingView{letview=ProgressRingView()
view.outterColor =.red
view.innerColor =.blue
return view
}}publicextensionLoadingView{publicstaticvarappLoadingView:LoadingView{returnLoadingView(loaderView:ProgressRingView. appProgressRing)}}staticvarmyLoader:LoadingView{letloaderView=UIActivityIndicatorView(activityIndicatorStyle:.gray)
loaderView.startAnimating()returnLoadingView(loaderView: loaderView)}LoadingView.appLoadingView.show(inView: view)or
LoadingView.myLoader.show(inView: view)



