Browse Source

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!

profile-edit
Sam DuBois 2 years ago
parent
commit
c5761b05d9
  1. 4
      damus/Views/FollowButtonView.swift

4
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)
}
}

Loading…
Cancel
Save