Class
PlaceholderLabel
public class PlaceholderLabel: UILabel, TextInputable
A UILabel that updates it self to display as a placeholder when it's text property is nil.
Relationships
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
readOnly
public var readOnly: Bool = false
placeholder
@objc public var placeholder: String! = kLabelInputFieldDefaultPlaceholder
The placeholder text to display.
viewNaturallySupportsRightAccessoryView
public let viewNaturallySupportsRightAccessoryView: Bool = false
rightAccessoryViewSize
public var rightAccessoryViewSize: CGSize = .zero
The size of the right accessory view.
rightAccessoryView
public var rightAccessoryView: UIView?
The overlay view that displays on the right (or trailing) side of the text field.