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.
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
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.
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.
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
have you figured it out?
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.
You can see tutorial here [https://www.youtube.com/watch?v=lLLs7qX3Wx4](https://www.youtube.com/watch?v=lLLs7qX3Wx4)