LoadingView
Custom loadingView
--------------------------------------------------------------------------------
π Congrats
π EllieLoadingView (0.0.2) successfully published
π
March 6th, 00:38
π https://cocoapods.org/pods/EllieLoadingView
π Tell your friends!
--------------------------------------------------------------------------------
How to use?
Pod install
pod 'EllieLoadingView'
create LoadingView variable
private var laodingView: LoadingView?
create loadingView
func setLoadingView() {
let loadingViewFrame = CGRect(
x: 0,
y: 0,
width: 100,
height: 100
)
laodingView = LoadingView(frame: loadingViewFrame)
guard let loadView = laodingView else { return }
loadView.center = self.view.center
self.view.addSubview(loadView)
}
Optional Setting
// setRadius (Option)
loadView.setRadius(radius: 5)
// setColor (Option)
loadView.setColor(color: UIColor.blue)
// setAlpha (Option)
loadView.setAlpha(alpha: 0.5)
Version 0.0.2
Customized loading View