SDWebImage / SDWebImageSwiftUI

SwiftUI Image loading and Animation framework powered by SDWebImage
https://sdwebimage.github.io/SDWebImageSwiftUI
MIT License
2.18k stars 224 forks source link

Data Races #318

Open Cyclic opened 3 months ago

Cyclic commented 3 months ago

It seems like the ObservedObject should be upgraded to the new @Observable macro, and the closures updated to structured concurrency with actor isolation in many instances. Testing with Xcode 16 beta.

Data race in closure #1 (Swift.Int, Swift.Int, Swift.Optional) -> () in SDWebImageSwiftUI.ImageManager.load(url: Swift.Optional, options: C.SDWebImageOptions, context: Swift.Optional<Swift.Dictionary<C.SDWebImageContextOption, Any>>) -> () at 0x33a961260

image image

image

image

image