Replies: 1 comment
-
If I understand correctly, you can use a computed property if you want to continue using a var userName10: String {
get { username.prefix(10) }
set { username = newValue.prefix(10) }
} and use |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
is there a simpler way to achieve a prefix on a simple form field?
i'd link to add a simple .prefix(10) to this field
Beta Was this translation helpful? Give feedback.
All reactions