TapActionRow
open class TapActionRow<T> : TapActionRowCompatible, Equatable where T : TapActionCell
A class that represents a row that triggers certain action when selected.
-
Initializes a
TapActionRow
with a text, an action closure, and an optional customization closure.Declaration
-
The text of the row.
Declaration
Swift
public let text: String
-
The detail text is disabled in
TapActionRow
.Declaration
Swift
public let detailText: DetailText?
-
A closure that will be invoked when the row is selected.
Declaration
Swift
public let action: ((Row) -> Void)?
-
The type of the table view cell to display the row.
Declaration
Swift
public let cellType: UITableViewCell.Type
-
The reuse identifier of the table view cell to display the row. The default value is TapActionCell.
Declaration
Swift
public let cellReuseIdentifier: String
-
The cell style is
.default
.Declaration
Swift
public let cellStyle: UITableViewCell.CellStyle
-
The default icon is nil.
Declaration
Swift
public let icon: Icon?
-
The default accessory type is
.none
.Declaration
Swift
public let accessoryType: UITableViewCell.AccessoryType
-
The
TapActionRow
is selectable when action is not nil.Declaration
Swift
public var isSelectable: Bool { get }
-
The additional customization during cell configuration.
-
Returns true iff
lhs
andrhs
have equal titles and detail texts.Declaration
Swift
public static func == (lhs: TapActionRow, rhs: TapActionRow) -> Bool