Multiple Selection With Two Pan Gestures

iOS 13's TableViews and CollectionViews provide two-finger pan gestures for the multiple selections of items. As soon as the view recognizes the gesture, it enables the editing mode. The user needn’t even tap the edit mode, as the gesture automatically puts the view in editing mode.

Also, the multiselection needn’t be continuous. A user can stop selecting at a certain point and begin the gesture from another point in the TableView or CollectionView . The following illustration shows how it works.

To support multiple item selection in a TableView , the allowsMultipleSelectionDuringEditing property needs to be enabled. Additionally, the following new optional delegate methods need to be implemented:

didBeginMultipleSelectionInteractionAt

shouldBeginMultipleSelectionInteractionAt

tableViewDidEndMultipleSelectionInteraction

Two-finger pan gestures also allow single-finger multiselection/deselection on a group of already selected items.