Protocols
The following protocols are available globally.
-
An instance conforming to
See moreDataSourceProtocol
represents 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 moreUICollectionView
andUITableView
by 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
, andUITableViewCell
by providing a common interface for cells.Declaration
Swift
public protocol ReusableViewProtocol
-
An instance conforming to
See moreReusableViewConfigProtocol
is responsible for initializing and configuring reusable views to be displayed in either aUICollectionView
or aUITableView
.Declaration
Swift
public protocol ReusableViewConfigProtocol