# ContainerCollectionReusableView

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

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

- `reuseIdentifier`

  Default reuse identifier is set with the class name.

  #### Declaration

  Swift

      public static var reuseIdentifier: String { get }

- `customView`

  Contained view.

  #### Declaration

  Swift

      public lazy var customView: CustomView { get set }

- `delegate`

  An instance of `ContainerCollectionViewCellDelegate`

  #### Declaration

  Swift

      public weak var delegate: ContainerCollectionViewCellDelegate?

- `prepareForReuse()`

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

  #### Declaration

  Swift

      public override func prepareForReuse()

- `preferredLayoutAttributesFitting(_:)`

  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`

- `apply(_:)`

  Applies the specified layout attributes to the view.

  #### Declaration

  Swift

      public override func apply(_ layoutAttributes: UICollectionViewLayoutAttributes)

  #### Parameters

  `layoutAttributes` | The layout attributes to apply.