Fix actor isolation issue
This commit is contained in:
parent
0b478113ac
commit
22213037ca
1 changed files with 1 additions and 3 deletions
|
|
@ -66,9 +66,7 @@ struct HomePosterCell: View {
|
|||
)
|
||||
else { return }
|
||||
let service = ImageService()
|
||||
await MainActor.run {
|
||||
imageData = try? await service.loadImage(url: url)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue