Skip to content

Commit 53079b1

Browse files
authored
Merge pull request insidegui#680 from insidegui/rambo/startup-race-condition
Fixed crash in ImageDownloadCenter caused by RemoteImage
2 parents c55d417 + baf2f6e commit 53079b1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

WWDC/RemoteImage.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ struct RemoteImage<Content: View, Placeholder: View>: View {
2828
}
2929
}
3030

31+
@MainActor
3132
private func load() async -> NSImage? {
3233
await withCheckedContinuation { continuation in
3334
switch size {

0 commit comments

Comments
 (0)