From c5761b05d914c93f7ad824d1f2f1dd384ef64d28 Mon Sep 17 00:00:00 2001 From: Sam DuBois Date: Mon, 19 Dec 2022 13:47:26 -0700 Subject: [PATCH] Quick fix on the border color of the follow button depending on if you already follow that person. Released my logic path was backwards. fixed! --- damus/Views/FollowButtonView.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/damus/Views/FollowButtonView.swift b/damus/Views/FollowButtonView.swift index 294d31a0..d7de02d3 100644 --- a/damus/Views/FollowButtonView.swift +++ b/damus/Views/FollowButtonView.swift @@ -27,7 +27,7 @@ struct FollowButtonView: View { .cornerRadius(20) .overlay { RoundedRectangle(cornerRadius: 16) - .stroke(follow_state == .unfollows ? borderColor() : fillColor(), lineWidth: 1) + .stroke(follow_state == .unfollows ? .clear : borderColor(), lineWidth: 1) } } .onReceive(handle_notify(.followed)) { notif in @@ -57,7 +57,7 @@ struct FollowButtonView: View { } func borderColor() -> Color { - colorScheme == .light ? .black.opacity(0.1) : .white.opacity(0.1) + colorScheme == .light ? .black.opacity(0.1) : .white.opacity(0.2) } }