ForagePINTextField
public class ForagePINTextField : UIView, Identifiable, ForageElement
-
Declaration
Swift
public var pinType: PinType -
Delegate that updates client’s side about state of the entered pin
Declaration
Swift
public weak var delegate: ForageElementDelegate?
-
Declaration
Swift
@IBInspectable public var isEmpty: Bool { get } -
Declaration
Swift
@IBInspectable public var isValid: Bool { get } -
Declaration
Swift
@IBInspectable public var isComplete: Bool { get } -
CornerRadius for the text field
Declaration
Swift
@IBInspectable public var cornerRadius: CGFloat { get set } -
MasksToBounds for the text field
Declaration
Swift
@IBInspectable public var masksToBounds: Bool { get set } -
BorderWidth for the text field
Declaration
Swift
@IBInspectable public var borderWidth: CGFloat { get set } -
BorderColor for the text field
Declaration
Swift
@IBInspectable public var borderColor: UIColor? { get set } -
Padding for the text field
Declaration
Swift
@IBInspectable public var padding: UIEdgeInsets { get set } -
Placeholder for the text field
Declaration
Swift
@IBInspectable public var placeholder: String? { get set } -
Text color for the text field
textColordefault value isblackDeclaration
Swift
@IBInspectable public var textColor: UIColor? { get set } -
BackgroundColor for the text field
Declaration
Swift
@IBInspectable public override var backgroundColor: UIColor? { get set } -
Size of the text for the text field
sizedefault value is24Declaration
Swift
@IBInspectable public var size: Double { get set } -
Tint color for the text field
tfTintColordefault value isblackDeclaration
Swift
@IBInspectable public var tfTintColor: UIColor? { get set } -
Text alignment
textAlignmentdefault value isnaturalDeclaration
Swift
@IBInspectable public var textAlignment: NSTextAlignment { get set } -
Change UIFont
VGSTextFieldtext fontDeclaration
Swift
@IBInspectable public var font: UIFont? { get set } -
Width of the input field within the ForagePINTextField.
See also
inputHeightto customize the height of the input field within the ForagePINTextField.Declaration
Swift
@IBInspectable public var inputWidth: CGFloat { get set } -
Height of the input field within the ForagePINTextField.
See also
elementHeightto customize the height of the entire ForagePINTextField.Declaration
Swift
@IBInspectable public var inputHeight: CGFloat { get set } -
Declaration
Swift
@IBInspectable public var elementHeight: CGFloat { get set }
-
Declaration
Swift
override public func awakeFromNib()
-
Declaration
Swift
public func clearText() -
Declaration
Swift
public func setPlaceholderText(_ text: String)
-
Make
ForagePINTextFieldfocused.Declaration
Swift
@discardableResult override public func becomeFirstResponder() -> Bool -
Remove focus from
ForagePINTextField.Declaration
Swift
@discardableResult override public func resignFirstResponder() -> Bool -
Check if
ForagePINTextFieldis focused.Declaration
Swift
override public var isFirstResponder: Bool { get }
ForagePINTextField Class Reference