NavigationRow
open class NavigationRow<T> : NavigationRowCompatible, Equatable where T : UITableViewCell
A class that represents a row that triggers certain navigation when selected.
-
Designated initializer on iOS. Returns a
NavigationRowwith a text and a detail text. The icon, customization, action and accessory button action closures are optional.Declaration
-
Designated initializer on tvOS. Returns a
NavigationRowwith a text and a detail text. The icon, customization and action closures are optional.
-
The text of the row.
Declaration
Swift
public let text: String -
The detail text of the row.
Declaration
Swift
public let detailText: DetailText? -
A closure that will be invoked when the row is selected.
Declaration
Swift
public let action: ((Row) -> Void)? -
A closure that will be invoked when the accessory button is selected.
Declaration
Swift
public let accessoryButtonAction: ((Row) -> Void)?
-
The type of the table view cell to display the row.
Declaration
Swift
public let cellType: UITableViewCell.Type -
Returns the reuse identifier of the table view cell to display the row.
Declaration
Swift
public var cellReuseIdentifier: String { get } -
Returns the table view cell style for the specified detail text.
Declaration
Swift
public var cellStyle: UITableViewCell.CellStyle { get } -
The icon of the row.
Declaration
Swift
public let icon: Icon? -
Returns the accessory type with the disclosure indicator when
actionis not nil, and with the detail button whenaccessoryButtonActionis not nil.Declaration
Swift
public var accessoryType: UITableViewCell.AccessoryType { get } -
The
NavigationRowis selectable when action is not nil.Declaration
Swift
public var isSelectable: Bool { get } -
The additional customization during cell configuration.
-
Returns true iff
lhsandrhshave equal titles, detail texts and icons.Declaration
Swift
public static func == (lhs: NavigationRow, rhs: NavigationRow) -> Bool
View on GitHub
NavigationRow Class Reference