Protocols

The following protocols are available globally.

  • An instance conforming to DataSourceProtocol represents a sectioned data source of items to be displayed in either a collection view or table view.

    See more

    Declaration

    Swift

    public protocol DataSourceProtocol

CellParentViewProtocol

  • This protocol unifies UICollectionView and UITableView by providing a common dequeue method for cells. It describes a view that is the “parent” view for a cell. For UICollectionViewCell, this would be UICollectionView. For UITableViewCell, this would be UITableView.

    See more

    Declaration

    Swift

    public protocol CellParentViewProtocol

ReusableViewProtocol

  • This protocol unifies UICollectionViewCell, UICollectionReusableView, and UITableViewCell by providing a common interface for cells.

    See more

    Declaration

    Swift

    public protocol ReusableViewProtocol

ReusableViewConfigProtocol

  • An instance conforming to ReusableViewConfigProtocol is responsible for initializing and configuring reusable views to be displayed in either a UICollectionView or a UITableView.

    See more

    Declaration

    Swift

    public protocol ReusableViewConfigProtocol