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.
//Automatically return focus to collectionView cell
var collectionView = UICollectionView()
collectionView.remembersLastFocusedIndexPath = true