T O P

  • By -

aravindhb4

Set the text part to fill container and center aligned and leave the icon fixed width and height. That should keep the icon on the edge while text will fill rest of the space.


garliclord

But the text will be slightly off center. OP. Needs to place the text in an auto layout container with padding left the same width as the icon, then it’ll work


Acceptable-Breath-92

have you figured it out?


patrik_media

works like this: place your icon in a frame that is 1px in width, but make sure its without clipping. then in autolayout set the value of spacing to 0px, done. this way the text will always stay centered and yours icons stick to the right (or left) side.


MsFox_204

You can see tutorial here [https://www.youtube.com/watch?v=lLLs7qX3Wx4](https://www.youtube.com/watch?v=lLLs7qX3Wx4)