FUIListCardComponent
public protocol FUIListCardComponent : AnyObject
The generic Type for FUIListCardComponent.
-
A hashable type for card content cell data model.
Declaration
Swift
associatedtype ItemIdentifier : Hashable, Identifiable -
Container for list card content
Declaration
Swift
var tableView: UITableView { get } -
Cell tapped action closure
Declaration
Swift
var cellTappedHandler: ((IndexPath, ItemIdentifier) -> Void)? { get set } -
Diffable data source for list card table view
Declaration
Swift
var dataSource: UITableViewDiffableDataSource<Int, ItemIdentifier>! { get } -
Cell provider for list card table view
Declaration
Swift
var cellProvider: ((UITableView, IndexPath, ItemIdentifier) -> UITableViewCell)? { get set } -
Registers a class to use in list card content table cells.
Declaration
Swift
func register(_ cellClass: AnyClass?, forCellReuseIdentifier identifier: String) -
Set the items with the specified identifiers to the snapshot.
Declaration
Swift
func setItems(_ items: [ItemIdentifier]) -
Adds the items with the specified identifiers to the snapshot.
Declaration
Swift
func appendItems(_ items: [ItemIdentifier]) -
Deletes the items with the specified identifiers from the snapshot.
Declaration
Swift
func deleteItems(_ items: [ItemIdentifier]) -
Deletes all of the items from the snapshot.
Declaration
Swift
func deleteAllItems() -
Inserts the provided items immediately before the item with the specified identifier in the snapshot.
Declaration
Swift
func insertItems(_ items: [ItemIdentifier], beforeItem: ItemIdentifier) -
Inserts the provided items immediately after the item with the specified identifier in the snapshot.
Declaration
Swift
func insertItems(_ items: [ItemIdentifier], afterItem: ItemIdentifier) -
Moves the item from its current position in the snapshot to the position immediately before the specified item.
Declaration
Swift
func moveItem(_ item: ItemIdentifier, beforeItem item: ItemIdentifier) -
Moves the item from its current position in the snapshot to the position immediately after the specified item.
Declaration
Swift
func moveItem(_ item: ItemIdentifier, afterItem item: ItemIdentifier) -
Reloads the data within the specified items in the snapshot.
Declaration
Swift
func reloadItems(_ items: [ItemIdentifier])