Say you want to layout several components together in a StackView like this
Drag out the stackview
And stretch it out
Then make it the same width as the image above. Control drag the stackview to the image
Next give it a height. In this case 70.
Then center it to the label above. Control drag the view to the artist label.
Then give it some distance between it and the label above.
Cmd + alt + = to readjust the layout…
And now we can add in the components. Drag in a button and a progress bar.
Put the progress bar in the middle by changing the horiztal stack view alignment property.
And then style and set sizes for the button however you wish. In this case 70×70.
You can then tune it up however you wish.
Leave a Reply