relays: bouncy edit animation
This commit is contained in:
@@ -157,10 +157,13 @@ struct RelayConfigView: View {
|
||||
if state.keypair.privkey != nil {
|
||||
if showActionButtons {
|
||||
Button("Done") {
|
||||
withAnimation(.bouncy) {
|
||||
showActionButtons.toggle()
|
||||
}
|
||||
}
|
||||
} else {
|
||||
Button("Edit") {
|
||||
withAnimation(.bouncy) {
|
||||
showActionButtons.toggle()
|
||||
}
|
||||
}
|
||||
@@ -168,6 +171,7 @@ struct RelayConfigView: View {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
struct RelayConfigView_Previews: PreviewProvider {
|
||||
static var previews: some View {
|
||||
|
||||
Reference in New Issue
Block a user