ForageElement
public protocol ForageElement : UIView, Appearance, ObservableState, Style
The interface that all of Forage’s input elements adhere to be it for PAN or PIN.
-
Declaration
Swift
var delegate: ForageElementDelegate? { get set }
-
Set the placeholder text of the input field.
Declaration
Swift
func setPlaceholderText(_ text: String)
-
Clear the value in the input field.
Declaration
Swift
func clearText()
-
Request that the input field gain focus.
Declaration
Swift
func becomeFirstResponder() -> Bool
-
Request that the input field resign focus.
Declaration
Swift
func resignFirstResponder() -> Bool