Hello. I’m baffled by an issue that seems so simple. What is the best practice for updating a SwiftUI View from a SpriteKit Scene? I have a ContentView which is a simple list of different games. Each game is presented via SpriteView(). At the conclusion of each game, I want the total score to update in the ContentView. In a prototype project I am able to pass the data I want smoothly between SwiftUI views (Content → Detail → Content, etc.), but this flow is broken when I try to call a method on a property of an ObservedObject in a SpriteKit scene. I feel a bit embarrassed because I think I’m missing something really obvious. But I hope anyone else who’s ever been in my place can understand and – please – help .
This topic was automatically closed after 166 days. New replies are no longer allowed.