DWBarHUD is a Swfit based top bar HUD for iOS 9 and above, support iPhoneX.
- Fully customizable.
- Show on top of view controlles.
- Four styles suit all needs.
- Present/Dismiss animation.
You want to add pod 'DWBarHUD', '~> 1.0' similar to the following to your Podfile:
target 'MyApp' do
pod 'DWBarHUD', '~> 1.0'
endThen run a pod install inside your terminal, or from CocoaPods.app.
Alternatively to give it a test run, run the command:pod try DWBarHUD
In any UIViewController, you need to import the module first
import DWBarHUDThen you can show an HUD and automatic disappear like this:
DWBarHUD.showHUD(message: "This is a message", type: .success)There are many properties you can customize.
DWBarHUD.sharedHUD.config.animationDurationdefines how long to present the HUD animationDWBarHUD.sharedHUD.config.displayDurationdefines how long the HUD showDWBarHUD.sharedHUD.config.barHeightdefines the height of the HUDDWBarHUD.sharedHUD.config.animationTypedefines the HUD animation typeDWBarHUD.sharedHUD.config.barSuccessIcon&DWBarHUD.sharedHUD.config.barSuccessColorthis two define success type's icon and color
more can be seen in Xcode
- iOS 9.0+
- Swift 4
- Xcode 9
You are welcome to fork and submit pull requests or issues.
DWBarHUD is open-sourced software licensed under the MIT license.
DWBarHUD is owned and maintained by Duwei



