CreationKit Documentation

Protocol Text​Inputable

public protocol TextInputable: UIView  

A protocol that is used by InputField to manage the text and placeholder of an input field.

TextInputable TextInputable UIView UIView TextInputable->UIView PlaceholderLabel PlaceholderLabel PlaceholderLabel->TextInputable PlaceholderTextField PlaceholderTextField PlaceholderTextField->TextInputable

Conforms To

UIView

Types Conforming to Text​Inputable

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!  

right​Accessory​View​Size

var rightAccessoryViewSize: CGSize  

right​Accessory​View

var rightAccessoryView: UIView?  

view​Naturally​Supports​Right​Accessory​View

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.

read​Only

var readOnly: Bool