Comment on Observation and MainActor This solution causes the following warning: "Stored property 'x' within struct cannot have a global actor; this is an error in Swift 6" UI Frameworks SwiftUI May ’24