InfoHUD
final class InfoHUD : NSObject
Manages a HUD view to show a short bit of text as an overlay on top of the existing application view.
-
Remove any existing HUD view.
Declaration
Swift
static func clear()
-
Show a HUD view with the given text. Automatically dispose of the view after
duration
seconds.Declaration
Swift
static func show(text: String, duration: TimeInterval = 3.0)
Parameters
text
the text to show in the view
duration
the number of seconds to show the view for
-
Hide the HUD view.
Declaration
Swift
static func hide(_ sender: UIWindow)
Parameters
sender
the object that is requesting the visibility change.