ContainerCollectionViewCell
@MainActor
public final class ContainerCollectionViewCell<CustomView> : UICollectionViewCell where CustomView : UIView
A container UICollectionViewCell that constraints its contained view to its margins.
-
Default reuse identifier is set with the class name.
Declaration
Swift
@MainActor public static var reuseIdentifier: String { get } -
Contained view.
Declaration
Swift
@MainActor public lazy var customView: CustomView { get set } -
An instance of
ContainerCollectionViewCellDelegateDeclaration
Swift
@MainActor public weak var delegate: ContainerCollectionViewCellDelegate? -
Performs any clean up necessary to prepare the view for use again.
Declaration
Swift
@MainActor public override func prepareForReuse() -
Gives the cell a chance to modify the attributes provided by the layout object.
Declaration
Swift
@MainActor public override func preferredLayoutAttributesFitting(_ layoutAttributes: UICollectionViewLayoutAttributes) -> UICollectionViewLayoutAttributesParameters
layoutAttributesThe 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
@MainActor public override func apply(_ layoutAttributes: UICollectionViewLayoutAttributes)Parameters
layoutAttributesThe layout attributes to apply.