I have an array of string and of course when the view appears, the ForEach shows all the items at once, but I would like to show one item at a time, i think i should do it using an animation but i don't know how to go on...
This is the effect i'm trying to achieve:
This is my simple code:
struct ContentView: View {
let correctNames = ["Steve", "Bill", "Elon", "Paul"]
var body: some View {
VStack {
ForEach(correctNames, id: \.self) { name in
Text("\(name)")
.font(.largeTitle)
.bold()
}
}
}
}