Home > OS >  Swift Align Leading Edge with Trailing Edge
Swift Align Leading Edge with Trailing Edge

Time:11-24

I have a label that I want as the x axis label on my graph, and I want to align the trailing edge of the label to the graph view, and also the top edge to the bottom edge of the graph view, how can I do this? I am building it via storyboard

storyboard screenshot with constraints enter image description here

CodePudding user response:

I record my screen to get what you want :

enter image description here

Just select the horizontal spacing constraint by selecting the blue line that represents it, and adjust the constraint's settings with the following :

enter image description here

  • Related