invalidationContextClass
Returns the class to use when creating an invalidation context for the layout.
Declaration
class var invalidationContextClass: AnyClass { get }Discussion
If you subclass UICollectionViewLayout and use a custom invalidation context object to improve the performance of your layout updates, override this method and return your UICollectionViewLayoutInvalidationContext subclass. When the collection view needs to invalidate your layout, it uses the class you provide to create an appropriate invalidation context object.
See Also
Invalidating the layout
invalidateLayout()invalidateLayout(with:)shouldInvalidateLayout(forBoundsChange:)invalidationContext(forBoundsChange:)shouldInvalidateLayout(forPreferredLayoutAttributes:withOriginalAttributes:)invalidationContext(forPreferredLayoutAttributes:withOriginalAttributes:)invalidationContext(forInteractivelyMovingItems:withTargetPosition:previousIndexPaths:previousPosition:)invalidationContextForEndingInteractiveMovementOfItems(toFinalIndexPaths:previousIndexPaths:movementCancelled:)