|
Hello, I was wondering if anyone could please help me.. I've manged to do the challenges for this and added my own extra animations to it, however the only problem I now seem to be facing is that the correct flag ALWAYS appears in the same place in the ForEach loop and my brain just doesn't have a clue ! I'm just over a month in to learning how to code so sorry it's probably something blindingly obvious but any help would be massively appreciated! Here's my code: |
|
|
|
Here:
you reshuffle the countries to get new choices but you don't generate a new You need to do this:
|
|
Wow I am majorly kicking myself for this one I knew it would've been something simple like that haha! It works now! THANK YOU SO MUCH! I really appreciate it! |
BUILD THE ULTIMATE PORTFOLIO APP Most Swift tutorials help you solve one specific problem, but in my Ultimate Portfolio App series I show you how to get all the best practices into a single app: architecture, testing, performance, accessibility, localization, project organization, and so much more, all while building a SwiftUI app that works on iOS, macOS and watchOS.
Sponsor Hacking with Swift and reach the world's largest Swift community!
This topic has been closed due to inactivity, so you can't reply. Please create a new topic if you need to.
All interactions here are governed by our code of conduct.
Link copied to your pasteboard.