Link Search Menu Expand Document

TableViewCell

The visual representation of a single row in a table view.

public class TableViewCell: View 

Inheritance

View

Initializers

init(style:reuseIdentifier:)

Initializes a table cell with a style and a reuse identifier and returns it to the caller.

public init(style: TableViewCell.CellStyle, reuseIdentifier: String?) 

Properties

reuseIdentifier

A string used to identify a cell that is reusable.

public let reuseIdentifier: String?

isEditing

A boolean value that indicates whether the cell is in an editable state.

public var isEditing: Bool = false

editingStyle

The editing style of the cell.

public private(set) var editingStyle: TableViewCell.EditingStyle = .none

showingDeleteConfirmation

A boolean value that indicates whether the cell is currently showing the delete-confirmation button.

public private(set) var showingDeleteConfirmation: Bool = false

showsReorderControl

A boolean value that determines whether the cell shows the reordering control.

public var showsReorderControl: Bool = false 

Methods

sizeThatFits(_:)

public override func sizeThatFits(_ size: Size) -> Size 

prepareForReuse()

Prepares a reusable cell for reuse by the table view’s delegate.

public func prepareForReuse() 

setEditing(_:animated:)

Toggles the receiver into and out of editing mode.

public func setEditing(_ editing: Bool, animated: Bool)