How to automatically return focus to the cell at last focused indexpath in collectionView?

remembersLastFocusedIndexPath

The above boolean property when set to true allows as to return focus to the last collection view cell which was focused before the focus left the collection view. When focus returns to the collection view, the last focused collection view cell will automatically gain focus. By default, this property is set to false.

 

Leave a Reply