mirror of
https://github.com/cranci1/Sora.git
synced 2026-03-29 13:59:29 +00:00
update progresses instaly
This commit is contained in:
parent
37f5be5960
commit
bb65945ac1
1 changed files with 5 additions and 1 deletions
|
|
@ -80,11 +80,15 @@ struct EpisodeCell: View {
|
|||
}
|
||||
}
|
||||
.onAppear {
|
||||
updateProgress()
|
||||
|
||||
if UserDefaults.standard.object(forKey: "fetchEpisodeMetadata") == nil
|
||||
|| UserDefaults.standard.bool(forKey: "fetchEpisodeMetadata") {
|
||||
fetchEpisodeDetails()
|
||||
}
|
||||
currentProgress = progress
|
||||
}
|
||||
.onChange(of: progress) { newProgress in
|
||||
updateProgress()
|
||||
}
|
||||
.onTapGesture {
|
||||
onTap(episodeImageUrl)
|
||||
|
|
|
|||
Loading…
Reference in a new issue