HintLabel
public class HintLabel: UILabel
Label that sits below the payment entry form, showing alerts and hints
-
designated initializer
Declaration
Swift
public init(currentTheme: Theme)Parameters
currentThemethe theme for the HintLabel UI
Return Value
a HintLabel instance
-
required initializer
Declaration
Swift
required convenience public init(coder aDecoder: NSCoder)Parameters
aDecodera decoder
Return Value
a HintLabel instance
-
a function that will return true if any of the texts is set
Declaration
Swift
public func isActive() -> Bool -
Makes the hint text visible in case there is no alert text occupying the space
Declaration
Swift
public func showHint(text: String)Parameters
textThe hint text string to show
-
Makes the alert text visible and overrides the hint text if it has been previously set and visible at the current time
Declaration
Swift
public func showAlert(text: String)Parameters
textThe alert text string to show
-
Hide the currently visible hint text and show the alert text if available
Declaration
Swift
public func hideHint() -
Hide the currently visible alert text and show the hint text if available
Declaration
Swift
public func hideAlert() -
Helper to show/hide/transition between texts
Declaration
Swift
public func addAnimation()
HintLabel Class Reference