Skip to content

Commit

Permalink
Fix heart symbol changes in AlbumView. Bump version number.
Browse files Browse the repository at this point in the history
  • Loading branch information
melgu committed Jul 4, 2020
1 parent 1cf67c1 commit 4d5892b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions TidalSwift.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down
5 changes: 3 additions & 2 deletions TidalSwift/AlbumView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -76,13 +76,15 @@ struct AlbumView: View {
.onTapGesture {
print("Remove from Favorites")
session.favorites?.removeAlbum(albumId: album.id)
viewState.refreshCurrentView()
}
} else {
Image("heart")
.primaryIconColor()
.onTapGesture {
print("Add to Favorites")
session.favorites?.addAlbum(albumId: album.id)
viewState.refreshCurrentView()
}
}
if let url = album.url {
Expand Down Expand Up @@ -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()
Expand Down

0 comments on commit 4d5892b

Please sign in to comment.