Hi
I have an enum of the TextFields in an Update SwiftData view. When the view opens, the focus is correct, and the button in the .toolbar keyboard sets the focus to nil and dismisses the keyboard. It works just fine.
But, if I tap on a different TextField other than the original field that the focus was set in a .onAppear, the button on the keyboard dims out and no longer works.
This same code works as expected in another view, the only difference in the Update view is that the data in the fields comes from an @Bindable variable.
Any clue what is going on?
Thanks so much!
Blessings,
--Mark
Topic:
UI Frameworks
SubTopic:
SwiftUI