Xcode keeps throwing a complier error that it doesn't comply with Swift 6 Which isn't obv out yet. It only started when I downloaded 13.3 Xcode.
The error reads:
Expression requiring global actor 'MainActor' cannot appear in default-value expression of property '_api'; this is an error in Swift 6
my code is doing an state object call like so:
@StateObject var api = RecipeAPI()
I have debugged and closed and reopened everything but nothing changes. Reported it to apple too.
Best,
Imran