DWBarHUD
DWBarHUD is a Swfit based top bar HUD for iOS 9 and above, support iPhoneX.
Features
- Fully customizable.
- Show on top of view controlles.
- Four styles suit all needs.
- Present/Dismiss animation.
Usage
In any UIViewController, you need to import the module first
import DWBarHUD
Then you can show an HUD and automatic disappear like this:
DWBarHUD.showHUD(message: "This is a message", type: .success)
Customization
There are many properties you can customize.
DWBarHUD.sharedHUD.config.animationDuration
defines how long to present the HUD animationDWBarHUD.sharedHUD.config.displayDuration
defines how long the HUD showDWBarHUD.sharedHUD.config.barHeight
defines the height of the HUDDWBarHUD.sharedHUD.config.animationType
defines the HUD animation typeDWBarHUD.sharedHUD.config.barSuccessIcon
&DWBarHUD.sharedHUD.config.barSuccessColor
this two define success type's icon and color
more can be seen in Xcode
Requirements
- iOS 9.0+
- Swift 4
- Xcode 9
Contribution
You are welcome to fork and submit pull requests or issues.
License
DWBarHUD is open-sourced software licensed under the MIT license.
Credits
DWBarHUD is owned and maintained by Duwei