JudoInputType
@objc public protocol JudoInputType
The type for all the input fields to conform to
-
didChangeInputText()
Default implementationHelper method for the hintLabel to disappear or reset the timer when called. This is triggered by the
shouldChangeCharactersInRange:
method in each of theinputField
subclassesDefault Implementation
Helper call for delegate method
Declaration
Swift
@objc func didChangeInputText()
-
textFieldDidChangeValue(_:)
Default implementationMethod 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 implementationPlaceholder 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 implementationAn 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 implementationThe 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 implementationThe 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 implementationThe 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 implementationA 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 implementationA 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