I'm getting concurrency warnings from code I didn't write, but rather was generated for me. The code is in GeneratedAssetSymbols in my Xcode project. All I did was drag in an image named "fencerGrid" into the asset catalogue and then try to reference the image in my code:
Image(uiImage: UIImage(imageLiteralResourceName: "fencerGrid")).resizable().scaleEffect(0.25)
When I build, I see a warning coming from this code, which I assume is auto-generated on my behalf:
@available(iOS 17.0, macOS 14.0, tvOS 17.0, watchOS 10.0, *)
extension DeveloperToolsSupport.ImageResource {
/// The "fencerGrid" asset catalog image resource.
static let fencerGrid = DeveloperToolsSupport.ImageResource(name: "fencerGrid", bundle: resourceBundle)
}
The above generates the warning:
Static property 'fencerGrid' is not concurrency-safe because it is not either conforming to 'Sendable' or isolated to a global actor; this is an error in Swift 6
How do I deal with this since I'm not writing the code?