Hey there! I was recently trying to create a top bar such as Jailbreak but I am failing to do so.
So, here is my topbar:
And when I resize it vertically, it works fine, staying in the same spot:
But, when I resize it horizontally, it becomes abnormally small:
To create this, I used a UIAspectRatioConstraint
Here are the settings for the constraint:
How can I make it so that, resizing it horizontally or vertically, won’t affect the size and positioning of the top bar? I would really appreciate help! Thank you!