ReusableView

public protocol ReusableView : AnyObject

Protocol for UIView “cell” classes that will be recycled and used over and over again to render content in a container such as UICollectionView.

  • Obtain the name of the identifier for this class

    Declaration

    Swift

    static var reuseIdentifier: String { get }

Available where Self: UIView

  • reuseIdentifier Default implementation

    Default Implementation

    Default implementation of the reuseIdentifier that uses the name of the class

    Declaration

    Swift

    public static var reuseIdentifier: String { get }