mirror of
https://github.com/cranci1/Sora.git
synced 2026-05-13 13:30:42 +00:00
Update DownloadView.swift
This commit is contained in:
parent
8420b373b4
commit
6b9ca1b6c8
1 changed files with 5 additions and 3 deletions
|
|
@ -679,6 +679,7 @@ struct DownloadedSection: View {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@MainActor
|
||||||
struct EnhancedActiveDownloadCard: View {
|
struct EnhancedActiveDownloadCard: View {
|
||||||
let download: JSActiveDownload
|
let download: JSActiveDownload
|
||||||
@State private var currentProgress: Double
|
@State private var currentProgress: Double
|
||||||
|
|
@ -870,7 +871,7 @@ struct EnhancedDownloadGroupCard: View {
|
||||||
HStack(spacing: 16) {
|
HStack(spacing: 16) {
|
||||||
Group {
|
Group {
|
||||||
if let posterURL = group.posterURL {
|
if let posterURL = group.posterURL {
|
||||||
LazyImage(url: posterURL) { state in
|
LazyImage(url: posterURL) { @MainActor state in
|
||||||
if let uiImage = state.imageContainer?.image {
|
if let uiImage = state.imageContainer?.image {
|
||||||
Image(uiImage: uiImage)
|
Image(uiImage: uiImage)
|
||||||
.resizable()
|
.resizable()
|
||||||
|
|
@ -1051,7 +1052,7 @@ struct EnhancedShowEpisodesView: View {
|
||||||
private var heroImageSection: some View {
|
private var heroImageSection: some View {
|
||||||
Group {
|
Group {
|
||||||
if let posterURL = group.posterURL {
|
if let posterURL = group.posterURL {
|
||||||
LazyImage(url: posterURL) { state in
|
LazyImage(url: posterURL) { @MainActor state in
|
||||||
if let uiImage = state.imageContainer?.image {
|
if let uiImage = state.imageContainer?.image {
|
||||||
Image(uiImage: uiImage)
|
Image(uiImage: uiImage)
|
||||||
.resizable()
|
.resizable()
|
||||||
|
|
@ -1244,6 +1245,7 @@ struct EnhancedShowEpisodesView: View {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@MainActor
|
||||||
struct EnhancedEpisodeRow: View {
|
struct EnhancedEpisodeRow: View {
|
||||||
let asset: DownloadedAsset
|
let asset: DownloadedAsset
|
||||||
let showDivider: Bool
|
let showDivider: Bool
|
||||||
|
|
@ -1295,7 +1297,7 @@ struct EnhancedEpisodeRow: View {
|
||||||
// Thumbnail
|
// Thumbnail
|
||||||
Group {
|
Group {
|
||||||
if let backdropURL = asset.metadata?.backdropURL ?? asset.metadata?.posterURL {
|
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 {
|
if let uiImage = state.imageContainer?.image {
|
||||||
Image(uiImage: uiImage)
|
Image(uiImage: uiImage)
|
||||||
.resizable()
|
.resizable()
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue