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
currentTheme
the theme for the HintLabel UI
Return Value
a HintLabel instance
-
required initializer
Declaration
Swift
required convenience public init(coder aDecoder: NSCoder)
Parameters
aDecoder
a 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
text
The 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
text
The 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()