Frame with UIAspectRatioConstraint not in the center of the screen on different devices

Hello! I am trying to have a GUI, and I have a UIAspectRatioConstraint in it. I want to have the GUI not to stretch but to fit within a boundary. I have a UIAspectRatioConstraint to do so. The problem is, with the UIAspectRatioConstraint in my frame, the frame isn’t in the center of the screen. If you know or think you know the answer, please answer. Thank you!

Change AnchorPoint to 0.5,0.5 and the position to {0.5,0},{0.5,0}

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.