What's the best way to resolve the concurrency warning: "Capture of 'self' with non-sendable type 'LoadingView' in a `@Sendable` closure"?

I'm repeating this clarification everywhere because a lot of people (not necessarily you) are confused by this: the data-race safety warnings will only become errors when you explicitly adopt -swift-version 6. Simply using the Swift 6.0 compiler without any changes to your project settings will not make these warnings become errors in your project.

6 Likes