0

I have a design project, where the distance between placeholder and the left border is 16. That is like it should be:

but I can't find a property to set it on 16 points, as a result I have this: But now it is like this:

I do my UI programmatically, but it is first time, when I can't do this for a week)))

I tried to write properties like these:

Gleb A.
  • 1,180
  • 15
  • 24
polykuzin
  • 21
  • 5

1 Answers1

2

Try this:

textField.leftView = UIView(frame: CGRect(x: 0, y: 0, width: 16, height: 62))
textField.leftViewMode = .always
pawello2222
  • 46,897
  • 22
  • 145
  • 209
Emre Ertan
  • 91
  • 6