Use reference to captured variable in concurrently-executing code
In short, something has to be modified from the main thread and only Sendable types can be passed from one actor to another. Let’s dig in the details. something has to be modified from the main thread. This is because @Published properties in an ObservableObject have to be modified from the main thread. The documentation … Read more