JudoInputType

@objc public protocol JudoInputType

The type for all the input fields to conform to

  • didChangeInputText() Default implementation

    Helper method for the hintLabel to disappear or reset the timer when called. This is triggered by the shouldChangeCharactersInRange: method in each of the inputField subclasses

    Default Implementation

    Helper call for delegate method

    Declaration

    Swift

    @objc func didChangeInputText()
  • textFieldDidChangeValue(_:) Default implementation

    Method that is called after a value has changed. This method is intended for subclassing.

    Default Implementation

    Subclassed method that is called when text field content was changed

    Declaration

    Swift

    @objc func textFieldDidChangeValue(textField: UITextField)

    Parameters

    textField

    the UITextField that has a changed value

  • placeholder() Default implementation

    Placeholder string for text fields depending on layout configuration. This method is intended for subclassing.

    Default Implementation

    The placeholder string for the current input field

    Declaration

    Swift

    @objc func placeholder() -> NSAttributedString?

    Return Value

    an NSAttributedString depending on color and configuration

  • containsLogo() Default implementation

    An indication of whether an input field contains a Logo or not. This method is intended for subclassing.

    Default Implementation

    Boolean indicating whether the receiver has to show a logo

    Declaration

    Swift

    @objc func containsLogo() -> Bool

    Return Value

    a boolean indication whether logo should be shown

  • logoView() Default implementation

    The logo of an input field if available. This method is intended for subclassing.

    Default Implementation

    If the receiving input field contains a logo, this method returns Some

    Declaration

    Swift

    @objc func logoView() -> CardLogoView?

    Return Value

    the logo of an inputField

  • title() Default implementation

    The title of an input field. This method is intended for subclassing.

    Default Implementation

    Title of the receiver input field

    Declaration

    Swift

    @objc func title() -> String

    Return Value

    the title of an inputField

  • titleWidth() Default implementation

    The title width for a given title and input field. This method is intended for subclassing.

    Default Implementation

    Width of the title

    Declaration

    Swift

    @objc func titleWidth() -> Int

    Return Value

    a title width in integer

  • hintLabelText() Default implementation

    A hint text for a given input field. This method is intended for subclassing.

    Default Implementation

    Hint label text

    Declaration

    Swift

    @objc func hintLabelText() -> String

    Return Value

    a String with instructions for a given inputField that pops up after 3 seconds of being idle

  • isValid() Default implementation

    A function that replies whether the entered text in that specific field is valid or not.

    Default Implementation

    Checks if the receiving input field has content that is valid

    Declaration

    Swift

    @objc func isValid() -> Bool

    Return Value

    true if information in field is valid