Protocol
TextInputable
public protocol TextInputable: UIView
A protocol that is used by InputField to manage the text and placeholder of an input field.
Relationships
Conforms To
UIView
Types Conforming to TextInputable
PlaceholderLabel
A UILabel that updates it self to display as a placeholder when it's text property is nil.
PlaceholderTextField
A UITextField that updates it self to display as a placeholder when it's text property is nil.
Requirements
text
var text: String?
placeholder
var placeholder: String!
rightAccessoryViewSize
var rightAccessoryViewSize: CGSize
rightAccessoryView
var rightAccessoryView: UIView?
viewNaturallySupportsRightAccessoryView
var viewNaturallySupportsRightAccessoryView: Bool
This should return true in conforming types that already support a right accessory view, such as UITextField.
The value of this return type will be used to determine if the InputField needs to manually insert a view to handle a right accessory view.
readOnly
var readOnly: Bool