From 6b9ca1b6c8dc328ac266284aaa56c1627dd680cd Mon Sep 17 00:00:00 2001 From: cranci1 <100066266+cranci1@users.noreply.github.com> Date: Tue, 17 Jun 2025 11:02:19 +0200 Subject: [PATCH] Update DownloadView.swift --- Sora/Views/DownloadView.swift | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Sora/Views/DownloadView.swift b/Sora/Views/DownloadView.swift index 599fb57..b93978e 100644 --- a/Sora/Views/DownloadView.swift +++ b/Sora/Views/DownloadView.swift @@ -679,6 +679,7 @@ struct DownloadedSection: View { } } +@MainActor struct EnhancedActiveDownloadCard: View { let download: JSActiveDownload @State private var currentProgress: Double @@ -870,7 +871,7 @@ struct EnhancedDownloadGroupCard: View { HStack(spacing: 16) { Group { if let posterURL = group.posterURL { - LazyImage(url: posterURL) { state in + LazyImage(url: posterURL) { @MainActor state in if let uiImage = state.imageContainer?.image { Image(uiImage: uiImage) .resizable() @@ -1051,7 +1052,7 @@ struct EnhancedShowEpisodesView: View { private var heroImageSection: some View { Group { if let posterURL = group.posterURL { - LazyImage(url: posterURL) { state in + LazyImage(url: posterURL) { @MainActor state in if let uiImage = state.imageContainer?.image { Image(uiImage: uiImage) .resizable() @@ -1244,6 +1245,7 @@ struct EnhancedShowEpisodesView: View { } } +@MainActor struct EnhancedEpisodeRow: View { let asset: DownloadedAsset let showDivider: Bool @@ -1295,7 +1297,7 @@ struct EnhancedEpisodeRow: View { // Thumbnail Group { if let backdropURL = asset.metadata?.backdropURL ?? asset.metadata?.posterURL { - LazyImage(url: backdropURL) { state in + LazyImage(url: backdropURL) { @MainActor state in if let uiImage = state.imageContainer?.image { Image(uiImage: uiImage) .resizable()