Pull to reload, Umplatzierung Search-Button, Album-Artist
This commit is contained in:
@@ -71,8 +71,9 @@ struct PlaylistDetailView: View {
|
||||
FavoriteButton(uri: playlist.uri, size: 22, showInLight: true)
|
||||
}
|
||||
}
|
||||
.task {
|
||||
.task(id: playlist.uri) {
|
||||
await loadTracks()
|
||||
guard !Task.isCancelled else { return }
|
||||
withAnimation(.linear(duration: 20).repeatForever(autoreverses: true)) {
|
||||
kenBurnsScale = 1.15
|
||||
}
|
||||
@@ -313,6 +314,8 @@ struct PlaylistDetailView: View {
|
||||
do {
|
||||
tracks = try await service.libraryManager.getPlaylistTracks(playlistUri: playlist.uri)
|
||||
isLoading = false
|
||||
} catch is CancellationError {
|
||||
return
|
||||
} catch {
|
||||
errorMessage = error.localizedDescription
|
||||
showError = true
|
||||
|
||||
Reference in New Issue
Block a user