Getting Error On Card Game

why this error pops up ,so the build shows failed ! ?

You need to declare firstFlippedCardIndex up the top of your MatchViewController where model and cardArray are declared. ie:

var firstFlippedCardIndex: IndexPath?

1 Like