ForagePANTextField

public class ForagePANTextField : UIView, Identifiable, ForageElement, ForageElementDelegate
extension ForagePANTextField : UITextFieldDelegate

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 }
  • 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 }
  • 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 }
  • 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 }
  • 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 }
  • Allow user to clear text field clearButtonMode default value is never

    Declaration

    Swift

    @IBInspectable
    public var clearButtonMode: UITextField.ViewMode { get set }
  • Change UIFont UITextField text font

    Declaration

    Swift

    @IBInspectable
    public var font: UIFont? { get set }
  • Declaration

    Swift

    @IBInspectable
    public var elementHeight: CGFloat { get set }

Public Delegate

Lifecycle methods

Public API

UITextFieldDelegate

UIResponder methods