I have the same issue. List cells that show up when the app loads have images loaded fine, but as soon as I start scrolling any cells below the "fold" all have blank images. Checking the error code from the phase callback it shows the classic URL "cancelled" error (code 999 I believe?).
I suspect this may be a beta 1 SDK bug as it's hard to have a bug in the following, almost literally copied over from the Apple docs:
AsyncImage(url: url) { phase in
if let image = phase.image {
image
} else if phase.error != nil {
Image(systemName: "exclamationmark.triangle").padding()
// the error here is "cancelled" on any view that wasn't visible at app launch
} else {
Spinner().padding()
}
}
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags: