Hi,
is there a way that an actor can have a @MainActor @Published
annotated property which is then consumed by a SwiftUI View "as usual"?
Currently this:
@Published @MainActor public private(set) var state: State = .initial
gives me the following error when trying to access it from with a SwiftUI View:
"Actor-isolated property '$state' can only be referenced from inside the actor"
I guess I understand where the error is coming from, but I wonder if there's a way to publish properties from actor
s and be able to make sure they are updated on the main thread by annotating them with @MainActor
.