I'm working on a swift project and have a Text Field. The user can input a string into this field. Currently if the user types too much then the string scrolls horizontally on the one line. How do I build a text field where once the first line is full it adds a line.
aaaaaaaaaaaaaaaaaaaaaaaaa
vs.
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaa
UITextField
is one-line only.
You can replace your UITextField
with UITextView
in your storyboard. They are editable and selectable by default.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With