So yesterday I had another session with ChatBT and this time it recommended that I use a Class too resolve the issue. This was:class GameState: ObservableObject { and following that all my variables were marked as @published and many of my lines were change to include the gamestate. i.e: gameState.currentScores[player.playerid ?? ""] = "-0"
Now I am afraid, I have no idea what this is all about but it now all works.
I will dig deeper into understanding this but I would like to thank Claude31 for his interest and help. Thank you
Topic:
Community
SubTopic:
Apple Developers