ReusableViewProtocol
public protocol ReusableViewProtocol
This protocol unifies UICollectionViewCell
, UICollectionReusableView
, and UITableViewCell
by providing a common interface for cells.
-
The “parent” view of the cell. For
UICollectionViewCell
orUICollectionReusableView
this isUICollectionView
. ForUITableViewCell
this isUITableView
.Declaration
Swift
associatedtype ParentView : UIView, CellParentViewProtocol
-
A string that identifies the purpose of the view.
Declaration
Swift
var reuseIdentifier: String? { get }
-
Performs any clean up necessary to prepare the view for use again.
Declaration
Swift
func prepareForReuse()