Introduction
KVLoading
is a loading screen and you can customize. Really simple to use, just add the class and write few line of code.
Example
Default | Custom |
---|---|
Requirements
- iOS 10.0+
- Swift 5.0
Installation
KVLoading is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'KVLoading', '~> 2.0.3'
Usage
Show default loading:
KVLoading.shared.show()
Show default loading without animation:
KVLoading.shared.show(animated: false)
Show custom view loading:
let customView: UIView = UIView()
KVLoading.shared.show(customView)
Show custom view loading without animation:
let customView: UIView = UIView()
KVLoading.shared.show(customView, animated: false)
Hide loading view:
KVLoading.shared.hide()
Hide loading view without animation:
KVLoading.shared.hide(animated: false)
Author
Vu Van Khac, [email protected]
My Facebook: https://www.facebook.com/vuvankhac.official
My Twitter: https://twitter.com/vuvankhac
License
KVLoading is available under the MIT license. See the LICENSE file for more info.