I need to set limited width of text in my `UITextField`, because I put button on top of that `UITextField`

look at image:

![enter image description here](https://i.stack.imgur.com/aeHe8.png)

how that can be done?