I am working on the Card Logic Game. And I’m currently on Lesson 27. I have everything set up except when I scroll down my cards, my first row does not flip back. I followed the instructions and implemented the code below. However, it still does not work.
func collectionView(_ collectionView: UICollectionView, willDisplay cell: UICollectionViewCell, forItemAt indexPath: IndexPath) {
// Configure the state of the cell based on the card properties
let cardCell = cell as? CardCollectionViewCell
let card = cardsArray[indexPath.row]
cardCell?.configureCell(card: card)
}