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!

This commit is contained in:
Sam DuBois
2022-12-19 13:47:26 -07:00
parent 0f64792585
commit c5761b05d9

View File

@@ -27,7 +27,7 @@ struct FollowButtonView: View {
.cornerRadius(20) .cornerRadius(20)
.overlay { .overlay {
RoundedRectangle(cornerRadius: 16) 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 .onReceive(handle_notify(.followed)) { notif in
@@ -57,7 +57,7 @@ struct FollowButtonView: View {
} }
func borderColor() -> Color { func borderColor() -> Color {
colorScheme == .light ? .black.opacity(0.1) : .white.opacity(0.1) colorScheme == .light ? .black.opacity(0.1) : .white.opacity(0.2)
} }
} }