I’m new to iOS app development and I’m currently working through the Matching Game course on Youtube. There is a part that when two cards match together they need to disappear from the screen, I followed all the steps but could not get the animation working. Here is a screenshot of the code
Basically the cell is supposed to fade out smoothly, but in my case it just waits for 1 second (0.5 second delay and 0.5 second duration) and suddenly disappears. I have tried increasing the duration to 1, 2 and 3 seconds, and it only seems to work at the very end when I adjust the duration to 2 or 3 seconds (just the very end there is a smooth decrease in opacity, but not throughout). I’ve googled a bunch of solutions but none of them seem to be working for me right now. Anyone has any ideas?
Thanks a lot!