TextRow

open class TextRow : LabelRow, TextRowType

TextRow presents a text item in the collection.

Version

1.8.0

Date

02/05/22

Author

Adamas
  • 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

    Swift

    public init(icon: UIImage? = nil,
                title: String? = nil,
                subtitle: String? = nil,
                placeholder: String? = nil,
                isSecret: Bool = false,
                returnType: UIReturnKeyType = .go,
                keyboardType: UIKeyboardType = .default,
                rules: [RuleType] = [],
                formatter: Formatter? = nil)

    Parameters

    icon

    The icon of the row.

    title

    The title of the row.

    subtitle

    The subtitle of the row.

    placeholder

    The placeholder of the text field.

    isSecret

    Whether or not the text field should be masked.

    returnType

    The return type of the keyboard.

    keyboardType

    The keyboard type.

    rules

    The rule set that the text field should follow.

    format

    The 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