ForagePINTextField
@MainActor
public class ForagePINTextField : UIView, Identifiable, ForageElement
-
Delegate that updates client’s side about state of the entered pin
Declaration
Swift
@MainActor public weak var delegate: ForageElementDelegate?
-
Declaration
Swift
@IBInspectable @MainActor public var isEmpty: Bool { get } -
Declaration
Swift
@IBInspectable @MainActor public var isValid: Bool { get } -
Declaration
Swift
@IBInspectable @MainActor public var isComplete: Bool { get } -
CornerRadius for the text field
Declaration
Swift
@IBInspectable @MainActor public var cornerRadius: CGFloat { get set } -
MasksToBounds for the text field
Declaration
Swift
@IBInspectable @MainActor public var masksToBounds: Bool { get set } -
BorderWidth for the text field
Declaration
Swift
@IBInspectable @MainActor public var borderWidth: CGFloat { get set } -
BorderColor for the text field
Declaration
Swift
@IBInspectable @MainActor public var borderColor: UIColor? { get set } -
Padding for the text field
Declaration
Swift
@IBInspectable @MainActor public var padding: UIEdgeInsets { get set } -
Placeholder for the text field
Declaration
Swift
@available(*, deprecated, message: "Setting ForagePINTextField.placeholder is unsupported.") @IBInspectable @MainActor public var placeholder: String? { get set } -
Text color for the text field
textColordefault value isblackDeclaration
Swift
@IBInspectable @MainActor public var textColor: UIColor? { get set } -
BackgroundColor for the text field
Declaration
Swift
@IBInspectable @MainActor override public var backgroundColor: UIColor? { get set } -
Size of the text for the text field
sizedefault value is24Declaration
Swift
@IBInspectable @MainActor public var size: Double { get set } -
Tint color for the text field
tfTintColordefault value isblackDeclaration
Swift
@IBInspectable @MainActor public var tfTintColor: UIColor? { get set } -
Text alignment
textAlignmentdefault value isnaturalDeclaration
Swift
@IBInspectable @MainActor public var textAlignment: NSTextAlignment { get set } -
Change UIFont
ForagePINTextFieldtext fontDeclaration
Swift
@IBInspectable @MainActor public var font: UIFont? { get set }
-
Declaration
Swift
@MainActor public func clearText()
-
Make
ForagePINTextFieldfocused.Declaration
Swift
@discardableResult @MainActor override public func becomeFirstResponder() -> Bool -
Remove focus from
ForagePINTextField.Declaration
Swift
@discardableResult @MainActor override public func resignFirstResponder() -> Bool -
Check if
ForagePINTextFieldis focused.Declaration
Swift
@MainActor override public var isFirstResponder: Bool { get }