Class
InputField
public class InputField<InputView: TextInputable>: UIView
An InputField is a view where a user can input text. This type is generic to allow multiple types of inputs, such as from a textfield with a keyboard, or a a simple label with an action sheet. This type shouldn't generally be used directly. You should prefer to use one of it's subclasses.
Relationships
Conforms To
UIView
Initializers
init(inputView:)
public init(inputView: InputView)
Properties
errorMessage
public var errorMessage: String?
An error message for the input. If this string is nil, a message won't be displayed, other it will be displayed when an error occurs in the input field. Defaults to nil.
isHighlighted
public var isHighlighted: Bool = false
true if the input field is currently focused on.
maxCharacters
public var maxCharacters: UInt = 0
A max character count for the input. Default value is zero, which indicates unlimited characters.
animationDuration
public var animationDuration: TimeInterval = 0.2
The animation duration for any animations the input field makes, such as when it transitions from normal to highlighted.
rightAccessoryViewSize
@objc public var rightAccessoryViewSize: CGSize
rightAccessoryView
@objc public var rightAccessoryView: UIView?
An accessory view that is displayed on the right side of the input field.