|
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:
|
SPONSORED Transform your career with the iOS Lead Essentials. This Black Friday, unlock over 40 hours of expert training, mentorship, and community support to secure your place among the best devs. Click for early access to this limited offer and a free crash course.
Sponsor Hacking with Swift and reach the world's largest Swift community!
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.