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
durationseconds.Declaration
Swift
static func show(text: String, duration: TimeInterval = 3.0)Parameters
textthe text to show in the view
durationthe number of seconds to show the view for
-
Hide the HUD view.
Declaration
Swift
static func hide(_ sender: UIWindow)Parameters
senderthe object that is requesting the visibility change.
View on GitHub
InfoHUD Class Reference