Post

Replies

Boosts

Views

Activity

Reply to Challenged shouldChangeCharactersIn behaviour.
It adds a lot of complexity to the editing process. Our code works as expected if a user backspaces at the end of the text, but deletes the wrong character if they move the cursor. Something that I found helpful was to not add injected characters after user typed text, other than possibly at the end. Essentially reformatting the text after the edit.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Dec ’23