ForagePINTextField

public class ForagePINTextField : UIView, Identifiable, ForageElement

Properties

Exposed properties

  • 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 is black

    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 is 24

    Declaration

    Swift

    @IBInspectable
    public var size: Double { get set }
  • Tint color for the text field tfTintColor default value is black

    Declaration

    Swift

    @IBInspectable
    public var tfTintColor: UIColor? { get set }
  • Text alignment textAlignment default value is natural

    Declaration

    Swift

    @IBInspectable
    public var textAlignment: NSTextAlignment { get set }
  • Change UIFont VGSTextField text font

    Declaration

    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 }

Lifecycle methods

Public API

UIResponder methods