That is a possible solution if all you need is a SwiftUI Image as a SwiftUI view, but that won’t help if you actually want to do anything with the image. AFAICT, there’s no way to get to an image’s data from a SwiftUI Image. I guess this is also the reason why it can be marked as Sendable: SwiftUI guarantees that the properties that are not thread safe will only ever be accessed on the main thread and since SwiftUI is the only thing that has access to that, it can ensure that.
Topic:
UI Frameworks
SubTopic:
AppKit
Tags: