Contents

deselectItems(at:)

Removes the specified items from the current selection.

Declaration

func deselectItems(at indexPaths: Set<IndexPath>)

Parameters

  • indexPaths:

    The index paths of the items you want to deselect.

Discussion

Use this method to reduce the current selection. If you want to animate the deselection of the new items, call this method on the collection view’s animator() proxy object instead. This method does not call any methods of the delegate object when making the selection.

See Also

Managing the Selection