I'm building a multi-box PIN/OTP input in SwiftUI. In UIKit, I used UITextFieldDelegate to detect backspace presses on an empty field to move focus backward.
SwiftUI’s .onChange(of: text) only triggers when text is actually deleted, completely missing backspaces on an already empty field.
Is there a pure SwiftUI way to handle this now, or are we still forced to wrap UITextField via UIViewRepresentable?