@avitzur, where do you put that call in the view? I have tried it in .onAppear (and .task) on my NavigationView and then my app crashes. Any hints?
Updated
I added
.onAppear() {
DispatchQueue.main.asyncAfter(deadline: .now() + 0.5){ nameIsFocused = true }
}
on my TextField, and now it works. Thank you avitzur
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags: