|
I have a Any pointers would be much appreciated. Current setuip is as follows (please note that the code is very experimental):
|
|
Hello! I've found a workaround of limitting an input character count for
|
|
Not sure if this is 100% efficient but I have been attempting to implement a solution using
thoughts, feedback and specially imporvements are very welcome. |
|
Thanks @devraj for your code, it works perfectly comparing to the above one which didn't work with me really don't know why cause it looks logic. Yours is less code and doesn't create a new specific object for each single view, i really like it. Thanks again. |
|
Thanks @devraj. I also had problems with the Stackoverflow approaches. The Combine approach looks nice. It is reusable as well if you create a custom modifier passing in a text binding and a limit. Like this at the call site:
|
SAVE 50% All our books and bundles are half price for Black Friday, so you can take your Swift knowledge further without spending big! Get the Swift Power Pack to build your iOS career faster, get the Swift Platform Pack to builds apps for macOS, watchOS, and beyond, or get the Swift Plus Pack to learn advanced design patterns, testing skills, and more.
This topic has been closed due to inactivity, so you can't reply. Please create a new topic if you need to.
All interactions here are governed by our code of conduct.
Link copied to your pasteboard.