From d832af20a1c58800b994c5730fb99338c150a0f1 Mon Sep 17 00:00:00 2001 From: Thomas Ricouard Date: Sun, 10 May 2020 21:12:36 +0200 Subject: [PATCH] LikeButton: set checkmark icon for critters --- .../views/shared/LikeButtonView.swift | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/ACHNBrowserUI/ACHNBrowserUI/views/shared/LikeButtonView.swift b/ACHNBrowserUI/ACHNBrowserUI/views/shared/LikeButtonView.swift index eee8ba38..a3b88a10 100644 --- a/ACHNBrowserUI/ACHNBrowserUI/views/shared/LikeButtonView.swift +++ b/ACHNBrowserUI/ACHNBrowserUI/views/shared/LikeButtonView.swift @@ -35,14 +35,24 @@ struct LikeButtonView: View { var imageName: String { if item != nil { - return isInCollection ? "star.fill" : "star" + if item?.isCritter == true { + return isInCollection ? "checkmark.seal.fill" : "checkmark.seal" + } else { + return isInCollection ? "star.fill" : "star" + } } else { return isInCollection ? "heart.fill" : "heart" } } var color: Color { - item != nil ? .yellow : .red + if item != nil { + if item?.isCritter == true { + return .acTabBarBackground + } + return .yellow + } + return .red } var body: some View {