First, when updating the @State
variable, wrap in withAnimation{}
Then, add a .transition(.move(edge: .bottom))
(or whatever transition you want) to the View
you are targetting
tl;dr - look at Paul’s post.
First, when updating the @State
variable, wrap in withAnimation{}
Then, add a .transition(.move(edge: .bottom))
(or whatever transition you want) to the View
you are targetting
tl;dr - look at Paul’s post.