CreationKit Documentation

Class Placeholder​Label

public class PlaceholderLabel: UILabel, TextInputable  

A UILabel that updates it self to display as a placeholder when it's text property is nil.

PlaceholderLabel PlaceholderLabel TextInputable TextInputable PlaceholderLabel->TextInputable UILabel UILabel PlaceholderLabel->UILabel

Conforms To

TextInputable

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

UILabel

Initializers

init(text:​placeholder:​)

public convenience init(
    text: String? = nil, placeholder: String)  

Properties

read​Only

public var readOnly: Bool = false

placeholder

@objc public var placeholder: String! = kLabelInputFieldDefaultPlaceholder  

The placeholder text to display.

view​Naturally​Supports​Right​Accessory​View

public let viewNaturallySupportsRightAccessoryView: Bool = false

right​Accessory​View​Size

public var rightAccessoryViewSize: CGSize = .zero

The size of the right accessory view.

right​Accessory​View

public var rightAccessoryView: UIView?  

The overlay view that displays on the right (or trailing) side of the text field.