Match Game "Reload"

For the “collectionView.reloadItem” in the bottom of the “checkForMatches”, I understand why we need this code, but I couldn’t understand why it could be placed in the bottom of “checkForMatches”. How can the “remove() , flipBack()” run if we haven’t reloaded the cell back? ( I only upload one image because i’m a new user:sweat:, the rest of the code is exactly the same as the code written in youtube video)

the cell/s are already loaded on the first run, the reload item in this case is just to “refresh” the view so flipback or remove is shown on the screen

1 Like