Post

Replies

Boosts

Views

Activity

Reply to In SwiftUI, any way to intercept each character entered in a TextField?
None of these still answers the main question. How to intercept/prevent/take control of any incoming characters, and when you don't want specific one, you can respond something like false to not allow it to be entered. Trying to override binding value will result in a crash, any other hack solutions will result in binding wrapped value storing different value from the one shown in UI. It's almost like some hidden storage container to which we do not get any access.
Dec ’21