relays: bouncy edit animation
This commit is contained in:
@@ -157,16 +157,20 @@ struct RelayConfigView: View {
|
|||||||
if state.keypair.privkey != nil {
|
if state.keypair.privkey != nil {
|
||||||
if showActionButtons {
|
if showActionButtons {
|
||||||
Button("Done") {
|
Button("Done") {
|
||||||
|
withAnimation(.bouncy) {
|
||||||
showActionButtons.toggle()
|
showActionButtons.toggle()
|
||||||
}
|
}
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
Button("Edit") {
|
Button("Edit") {
|
||||||
|
withAnimation(.bouncy) {
|
||||||
showActionButtons.toggle()
|
showActionButtons.toggle()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
struct RelayConfigView_Previews: PreviewProvider {
|
struct RelayConfigView_Previews: PreviewProvider {
|
||||||
|
|||||||
Reference in New Issue
Block a user