ContainerCollectionReusableView

public final class ContainerCollectionReusableView<CustomView> : UICollectionReusableView where CustomView : UIView

A container UICollectionReusableView that constraints its contained view to its margins.

  • Default reuse identifier is set with the class name.

    Declaration

    Swift

    public static var reuseIdentifier: String { get }
  • Contained view.

    Declaration

    Swift

    public lazy var customView: CustomView { get set }
  • Declaration

    Swift

    public weak var delegate: ContainerCollectionViewCellDelegate?
  • Performs any clean up necessary to prepare the view for use again.

    Declaration

    Swift

    public override func prepareForReuse()
  • Gives the cell a chance to modify the attributes provided by the layout object.

    Declaration

    Swift

    public override func preferredLayoutAttributesFitting(_ layoutAttributes: UICollectionViewLayoutAttributes) -> UICollectionViewLayoutAttributes

    Parameters

    layoutAttributes

    The attributes provided by the layout object. These attributes represent the values that the layout intends to apply to the cell.

    Return Value

    Modified UICollectionViewLayoutAttributes

  • Applies the specified layout attributes to the view.

    Declaration

    Swift

    public override func apply(_ layoutAttributes: UICollectionViewLayoutAttributes)

    Parameters

    layoutAttributes

    The layout attributes to apply.