GradientHUD
Usage
first import GradientHUD to your class.
import GradientHUD
initialize and show HUD
let HUD = GradientHUD()
HUD.show(on:self)
hide HUD
HUD.hide()
Customizations
change gradient colors
HUD.gradientArr = [UIColor.blue.cgColor, UIColor.red.cgColor, UIColor.purple.cgColor]
change spinner color
HUD.spinnerView.color = UIColor.black.cgColor
clear background
HUD.dimBackground = true
Example
To run the example project, clone the repo, and run pod install
from the Example directory first.
Requirements
- iOS 9.0+
- Xcode 9.0+
- Swift 4.0
Installation
GradientHUD is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'GradientHUD'
Author
mouhammedali, [email protected]
License
GradientHUD is available under the MIT license. See the LICENSE file for more info.