SwiftUI conditional view will not animate/transition
问题 I’m trying to get my views to animate/transition using .transition() on views. I use similar code from here and put .transition() to both conditional views. struct Base: View { @State private var isSignedIn = false var body: some View { Group { if(isSignedIn){ Home().transition(.slide) }else{ AuthSignin(isSignedIn: self.$isSignedIn).transition(.slide) } } } } struct AuthSignin: View { @Binding var isSignedIn: Bool var body: some View { VStack { Button(action: { self.isSignedIn = true }) {