SimpleHUD
is available on CocoaPods:
pod 'SimpleHUD'
- File > Swift Packages > Add Package Dependency
- Add
https://github.com/knottx/SimpleHUD.git
- Select "Up to Next Major" with "1.7.2"
import SimpleHUD
var simpleHUD: SimpleHUD = SimpleHUD()
Show HUD
self.simpleHUD.show(at: self.view)
Dismiss HUD
self.simpleHUD.dismiss()
Dissmiss all stacked HUD
self.simpleHUD.dissmissAll()
self.simpleHUD.show(at: self.view, type: <SimpleHUDType>, color: <UIColor>)
SimpleHUDType
.activityIndicator
.circleStroke
.circleRotateChase
.circleSpinFade
.threeDots
.fiveBars
.progress(value: CGFloat)
.icon(_ image: UIImage?)
var simpleToast: SimpleToast = SimpleToast()
Show Toast
self.simpleToast.toast(at: self.view, message: <String?>, image: <UIImage?>)
Dismiss Toast
self.simpleToast.dismiss()
- iOS 10.0+
- Xcode 11+
- Swift 5.1+