I have already tried using UISizeConstraint and most scaling plugins but nothing worked I have tried looking at the code creating the buttions but I can’t understand can someone help?
Hello, first of all, I might suggest for you to use a UIListLayout to automatically manage the positioning in your frame. Using this, you can position and size your frame however you like using scale values and the inner objects will be positioned/adjusted automatically.
You can then have inner UI objects maintain a square shape using UIAspaceRatioConstraints with AspectRatio 1 and having its Y size scale equal to 1. You can also use a UIAspectRatioConstraint to auto-size the frame to maintain its shape.
I know this is a bunch of UI stuff that may seem confusing at first, so I would highly suggest reading the docs linked above related to the objects. If you still need help, feel free to let me know!