I am using the latest version of Xcode and am using SwiftUI.
My question is how to limit the number of characters a user can enter in a TextField.
When I search for answers to this online I find answers but they don’t appear to work with the latest version of SwiftUI. They appear to remove extra characters from the TextField variable, but the TextField itself is not updated to show the removal of extra characters.
Hope this can be done. Help would be appreciated.
Thank you - Ed Campbell