From 4d5892b458b4b47809757ac24138a8b5456230ab Mon Sep 17 00:00:00 2001 From: Melvin Gundlach Date: Sun, 5 Jul 2020 00:26:31 +0200 Subject: [PATCH] Fix heart symbol changes in AlbumView. Bump version number. --- TidalSwift.xcodeproj/project.pbxproj | 4 ++-- TidalSwift/AlbumView.swift | 5 +++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/TidalSwift.xcodeproj/project.pbxproj b/TidalSwift.xcodeproj/project.pbxproj index 6c98a3b..1b26e37 100644 --- a/TidalSwift.xcodeproj/project.pbxproj +++ b/TidalSwift.xcodeproj/project.pbxproj @@ -1024,7 +1024,7 @@ CODE_SIGN_IDENTITY = "Apple Development"; CODE_SIGN_STYLE = Automatic; COMBINE_HIDPI_IMAGES = YES; - CURRENT_PROJECT_VERSION = 27; + CURRENT_PROJECT_VERSION = 28; DEVELOPMENT_ASSET_PATHS = "TidalSwift/Preview\\ Content"; DEVELOPMENT_TEAM = V7E5P7292M; ENABLE_HARDENED_RUNTIME = YES; @@ -1054,7 +1054,7 @@ CODE_SIGN_IDENTITY = "Apple Development"; CODE_SIGN_STYLE = Automatic; COMBINE_HIDPI_IMAGES = YES; - CURRENT_PROJECT_VERSION = 27; + CURRENT_PROJECT_VERSION = 28; DEVELOPMENT_ASSET_PATHS = "TidalSwift/Preview\\ Content"; DEVELOPMENT_TEAM = V7E5P7292M; ENABLE_HARDENED_RUNTIME = YES; diff --git a/TidalSwift/AlbumView.swift b/TidalSwift/AlbumView.swift index fd90d74..59e6965 100644 --- a/TidalSwift/AlbumView.swift +++ b/TidalSwift/AlbumView.swift @@ -76,6 +76,7 @@ struct AlbumView: View { .onTapGesture { print("Remove from Favorites") session.favorites?.removeAlbum(albumId: album.id) + viewState.refreshCurrentView() } } else { Image("heart") @@ -83,6 +84,7 @@ struct AlbumView: View { .onTapGesture { print("Add to Favorites") session.favorites?.addAlbum(albumId: album.id) + viewState.refreshCurrentView() } } if let url = album.url { @@ -143,8 +145,7 @@ struct AlbumView: View { .padding(EdgeInsets(top: 10, leading: 20, bottom: 10, trailing: 20)) TrackList(wrappedTracks: tracks.wrapped(), showCover: false, showAlbumTrackNumber: true, - showArtist: true, showAlbum: false, playlist: nil, - session: session, player: player) + showArtist: true, showAlbum: false, playlist: nil, session: session, player: player) } else { HStack { Spacer()