iOS Swift - Animations
Given this code snippet, what will happen when the button is tapped?
@State private var show = false
Button("Toggle") {
withAnimation(.spring()) {
show.toggle()
}
}
if show {
Text("Hello")
}