A simple HUD to indicate activity, success, and failure.
#Description MOHUD is a smilpe HUD written in swift using storyboard for its Views.
MOHUD adds continue and cancel buttons the loader HUD optionally.
#Installation
##MANUAL
Just Drag-drop the MOHUD folder into your project.
##CocoaPods
pod 'MOHUD'
#How to Use
For Showing the HUD
MOHUD.show()
For dismiss
MOHUD.dismiss()
Show with custom status
MOHUD.show("Processing")
Subtitle
MOHUD.showSubtitle(title: "Connection", subtitle: "Please Wait", period: 3)
Failure
MOHUD.showWithError("Failed :(")
Success
MOHUD.showSuccess("You Made it")
Showing HUD with Cancel buttons
MOHUD.show(periodOfTime: 10, withCancelAndContinue: true)
MOHUD.setBlurStyle(.Dark)
MOHUD.onCancel = {
debugPrint("User Canceled")
}
MOHUD.onContinoue = {
debugPrint("User want to contniue without the progress indicator ")
}
#license
MIT
#Author
- Twitter : dark_torch
- Website: https://moathothman.com
- Check my app PuzzPic http://apple.co/2a6Ow8W