ReusableViewProtocol

public protocol ReusableViewProtocol

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

Associated types

  • The “parent” view of the cell. For UICollectionViewCell or UICollectionReusableView this is UICollectionView. For UITableViewCell this is UITableView.

    Declaration

    Swift

    associatedtype ParentView : UIView, CellParentViewProtocol

Properties

  • A string that identifies the purpose of the view.

    Declaration

    Swift

    var reuseIdentifier: String? { get }

Methods

  • Performs any clean up necessary to prepare the view for use again.

    Declaration

    Swift

    func prepareForReuse()