SwiftUI switch focus dynamic textFields

Viewed 13

Im getting response from server, and based on that i create some amount of TextFields, then user fill them one by one and obviously changing focus clicking Done button on keyboard. Problem is that @FocusState wrapper that changing focus, requires enum, that is predefined at compile time. The question is how i can change focus between TextFields that depend from runtime ?

0 Answers
Related