0

How can I set the textAlignment of the placeholder in the right and the textAlignment of the main text in the left in UITextField in Swift?

1 Answer 1

0

Set the UITextField to natural textAlignment in Swift. In Interface Builder that's the alignment on the right with the dashes:

enter image description here

Your Answer

Reminder: Answers generated by Artificial Intelligence tools are not allowed on Stack Overflow. Learn more

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.