OptionRow

open class OptionRow<T> : OptionRowCompatible, Equatable where T : UITableViewCell

A class that represents a row of selectable option.

Initializer

OptionRowCompatible

Row

RowStyle

  • 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 .checkmark when the row is selected, otherwise returns .none.

    Declaration

    Swift

    public var accessoryType: UITableViewCell.AccessoryType { get }
  • OptionRow is always selectable.

    Declaration

    Swift

    public let isSelectable: Bool
  • Additional customization during cell configuration.

    Declaration

    Swift

    public let customize: ((UITableViewCell, Row & RowStyle) -> Void)?

Equatable

  • Returns true iff lhs and rhs have equal titles, detail texts, selection states, and icons.

    Declaration

    Swift

    public static func == (lhs: OptionRow, rhs: OptionRow) -> Bool