CellFactoryProtocol
protocol CellFactoryProtocol
CellFactoryProtocol
-
Item
Declaration
Swift
associatedtype Item
-
Cell
Declaration
Swift
associatedtype Cell : UITableViewCell
-
EventHandler
Declaration
Swift
associatedtype EventHandler
-
reuseIdentifier
Default implementationreuse Identifier
Default Implementation
Default reuseIdentifier
Declaration
Swift
static var reuseIdentifier: String { get }
-
configure(_:with:for:eventHandler:)
Default implementationConfigure
Default Implementation
Default configure
Declaration
Swift
static func configure(_ cell: Cell, with item: Item, for indexPath: IndexPath, eventHandler: EventHandler)
Parameters
cell
Cell
item
Item
indexPath
Index path
eventHandler
Event handler
-
suitable(for:)
Extension methodDefault suitable
Declaration
Swift
static func suitable(for item: Any) -> Bool
Parameters
item
Item