TextRow
open class TextRow : LabelRow, TextRowType
TextRow presents a text item in the collection.
Version
1.8.0Date
02/05/22-
Declaration
Swift
public let placeholder: String? -
Declaration
Swift
public let returnType: UIReturnKeyType -
Declaration
Swift
public let isSecret: Bool -
Declaration
Swift
public let keyboardType: UIKeyboardType -
Declaration
Swift
public var didReturnAction: (() -> Void)? -
Declaration
Swift
public var didChangeValidationAction: ((Bool) -> Void)? -
Declaration
Swift
public var didChangeValueAction: ((String?) -> Void)? -
Declaration
Swift
public var didEndEditingAction: (() -> Void)? -
Declaration
Swift
public var didStartEditingAction: (() -> Void)? -
Declaration
Swift
public var value: String? { get set } -
Declaration
Swift
public var isValid: Bool { get set } -
Declaration
Swift
public var isEnabled: Bool { get set } -
Initialize the row
Declaration
Parameters
iconThe icon of the row.
titleThe title of the row.
subtitleThe subtitle of the row.
placeholderThe placeholder of the text field.
isSecretWhether or not the text field should be masked.
returnTypeThe return type of the keyboard.
keyboardTypeThe keyboard type.
rulesThe rule set that the text field should follow.
formatThe format that defines how the text should be formatted.
-
Declaration
Swift
public func isValid(value: String?, shouldUpdateView: Bool) -> String? -
Declaration
Swift
public func format(value: String) -> String
TextRow Class Reference