Class
LabelInputFormLayout
public class LabelInputFormLayout: NSObject, ComponentLayout, LabelInputForm
A layout used in forms for gathering input from a user.
This form should not be used directly as it only provides base methods for it's subclasses. This layout doesn't directly support any way for the user to input any value into the form.
Relationships
Subclasses
DateInputFormLayout
A
LabelInputFormLayout
subclass that uses aDateInputFormLayout
for user input.RangedDateInputFormLayout
A
LabelInputFormLayout
subclass that uses aDateInputFormLayout
for user input. This is similar to theDateInputFormLayout
, but is used in cases where the use needs Ranged Selected on the DatePicker.SheetInputFormLayout
A
LabelInputFormLayout
subclass that uses aBottomSheet
for user input.
Conforms To
ComponentLayout
A protocol to share components (view layouts) across different types.
NSObject
Initializers
init()
required public override init()
Properties
attributedTitle
public var attributedTitle: NSAttributedString?
The attributed title to display for the input field. Defaults to nil.
placeholder
public var placeholder: String
The placeholder to display in the input field when text hasn't been entered.
isHighlighted
public var isHighlighted: Bool = false
errorMessage
public var errorMessage: String?
An error message for the input. If this string is nil, a message won't be displayed, otherwise it will be displayed when an error occurs in the input field. Defaults to nil.
helperMessage
public var helperMessage: String?
An explanatory message that sits below the input. It is hidden in the case of a validation error.
rightAccessoryViewSize
public var rightAccessoryViewSize: CGSize
rightAccessoryView
public var rightAccessoryView: UIView?
state
public var state: InputFieldState
tintColor
public var tintColor: UIColor
Methods
layout(on:)
public func layout(on view: UIView)