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
textColor
default value isblack
Declaration
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
size
default value is24
Declaration
Swift
@IBInspectable public var size: Double { get set }
-
Tint color for the text field
tfTintColor
default value isblack
Declaration
Swift
@IBInspectable public var tfTintColor: UIColor? { get set }
-
Text alignment
textAlignment
default value isnatural
Declaration
Swift
@IBInspectable public var textAlignment: NSTextAlignment { get set }
-
Change UIFont
VGSTextField
text fontDeclaration
Swift
@IBInspectable public var font: UIFont? { get set }
-
Width of the input field within the ForagePINTextField.
See also
inputHeight
to 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
elementHeight
to 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
ForagePINTextField
focused.Declaration
Swift
@discardableResult override public func becomeFirstResponder() -> Bool
-
Remove focus from
ForagePINTextField
.Declaration
Swift
@discardableResult override public func resignFirstResponder() -> Bool
-
Check if
ForagePINTextField
is focused.Declaration
Swift
override public var isFirstResponder: Bool { get }