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:
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user