I have this code:
struct MyTestScreen: View {
@State var text1 = ""
@State var text2 = ""
var body: some View {
VStack {
TextField("text1", text: self.$text1)
TextField("text2", text: self.$text2)
}
}
}
How can I change focus on text2 TextField, when I fill text1 and press "return"?