Protocols

The following protocols are available globally.

  • Protocols for text field which can communicate with DatePickerView as its inputView

    See more

    Declaration

    Swift

    public protocol DateTextField : GuidedTextField
  • Protocols for manageable text field, which can switch responder or resign it

    See more

    Declaration

    Swift

    public protocol GuidedTextField : AnyObject
  • Protocols for text field which can communicate with PlainPickerView as its inputView

    See more

    Declaration

    Swift

    public protocol PickerTextField : GuidedTextField
  • Describes type of field which can reset its state

    See more

    Declaration

    Swift

    public protocol ResetableField
  • Abstract protocol that give you ability to control under responder chain for text fields.

    See more

    Declaration

    Swift

    public protocol RespondableField
  • Undocumented

    See more

    Declaration

    Swift

    public protocol TextFieldValidation : AnyObject
  • Abstract protocol for fields input accessory views. You can add buttons to switch between input fields, guidedField will help you with this. Or you can ignore this field and create your own custom toolbar! Because protocol have default implementation and all of it’s components is optional.

    See more

    Declaration

    Swift

    public protocol ToolBarInterface : UIView
  • Abstract protocl for hint service.

    You can use existed HintService from this library, this service will do all work for supporting hint messages, or you can provide your own service which have to implement this protocol.

    See more

    Declaration

    Swift

    public protocol AbstractHintService
  • Protocol for abstract service, which contains logic for drawing placeholder.

    This protocol have main methods to draw placeholder as you want. Some methods is optional.

    If you want to use you own custom placeholder service - you may implement service with this protocol.

    See more

    Declaration

    Swift

    public protocol AbstractPlaceholderService
  • Abstraction under UITextField/InnerTextField and UITextView

    The need is due to the desire to close two different classes with one protocol for use in places where both classes will be used in the same way.

    Important

    Protocol have two default extension with implementation for InnerTextField and UITextView.
    See more

    Declaration

    Swift

    public protocol InputField : UIView