Contents

invalidateItems(at:)

Marks the specified items as invalid so that their layout information can be updated.

Declaration

func invalidateItems(at indexPaths: Set<IndexPath>)

Parameters

  • indexPaths:

    A set of Nsindexpath objects. Each index path represents an item whose layout needs to be recomputed.

Discussion

Call this method when you want the layout object to recompute attributes for a specific set of items. The items you provide are added to the invalidatedItemIndexPaths property. You can call this method more than once to create a merged set of items.

See Also

Invalidating Specific Items