Protocols
The following protocols are available globally.
-
An instance conforming to
See moreDataSourceProtocolrepresents a sectioned data source of items to be displayed in either a collection view or table view.Declaration
Swift
public protocol DataSourceProtocol
-
This protocol unifies
See moreUICollectionViewandUITableViewby providing a common dequeue method for cells. It describes a view that is the “parent” view for a cell. ForUICollectionViewCell, this would beUICollectionView. ForUITableViewCell, this would beUITableView.Declaration
Swift
public protocol CellParentViewProtocol
-
This protocol unifies
See moreUICollectionViewCell,UICollectionReusableView, andUITableViewCellby providing a common interface for cells.Declaration
Swift
public protocol ReusableViewProtocol
-
An instance conforming to
See moreReusableViewConfigProtocolis responsible for initializing and configuring reusable views to be displayed in either aUICollectionViewor aUITableView.Declaration
Swift
public protocol ReusableViewConfigProtocol
View on GitHub
Protocols Reference