Skip to content

Commit

Permalink
relays: bouncy edit animation
Browse files Browse the repository at this point in the history
  • Loading branch information
jb55 committed Sep 11, 2023
1 parent 6a88ca2 commit 16edc3f
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions damus/Views/Relays/RelayConfigView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -157,11 +157,15 @@ struct RelayConfigView: View {
if state.keypair.privkey != nil {
if showActionButtons {
Button("Done") {
showActionButtons.toggle()
withAnimation(.bouncy) {
showActionButtons.toggle()
}
}
} else {
Button("Edit") {
showActionButtons.toggle()
withAnimation(.bouncy) {
showActionButtons.toggle()
}
}
}
}
Expand Down

1 comment on commit 16edc3f

@jonmarrs
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This recent addition of withAnimation(.bouncy) is causing errors when building Damus.

Please sign in to comment.