This is a simplified representation of my code. How do I add an animation to Text("hi") here? It's a really simple appearance animation.
import SwiftUI struct Test: View { @State var showText:Bool = true var body: some View { List{ HStack{ Image(systemName: "square") Text("tap") } .onTapGesture { showText.toggle() } if (showText) { Text("Hi") } } } } struct Test_Previews: PreviewProvider { static var previews: some View { Test() } }
