Thanks for the reply. Seems like I only had to do two changes. One is making my Player class inherit from ObservableObject and two is switching my @State to @ObservedObject for the player. I thought that @ObservedObject is only for things like ViewModels but totally overseen the fact that in this case my Model became my ViewModel for this Control.
Seems like I still have a long way to learn how to apply Swift and SwiftUI correctly - especially the architecture part. Anyway, thanks for your reply it just fixed all errors I still had.
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags: