Use the ProgressHUD static methods to trigger various HUD states such as banners, animations, success/error indicators, and progress bars.
// Banners
ProgressHUD.banner("Banner title", "Banner message to display.")
ProgressHUD.banner("Banner title", "Message to display.", delay: 2.0)
ProgressHUD.bannerHide()
// Animations and Loading
ProgressHUD.animate("Some text...")
ProgressHUD.animate("Some text...", interaction: false)
ProgressHUD.animate("Please wait...", .ballVerticalBounce)
ProgressHUD.animate("Loading...", symbol: "star.fill")
// Status Indicators
ProgressHUD.succeed()
ProgressHUD.succeed("Some text...", delay: 1.5)
ProgressHUD.failed()
ProgressHUD.failed("Some text...")
ProgressHUD.success("Success message")
ProgressHUD.error("Error message")
ProgressHUD.added("Item added")
// Progress Bars
ProgressHUD.progress(0.15)
ProgressHUD.progress("Loading...", 0.42)
// Symbols
ProgressHUD.symbol(name: "box.truck")
ProgressHUD.symbol("Some text...", name: "sun.max")
// Dismissal
ProgressHUD.dismiss()
ProgressHUD.remove()