I'm doing a project in UIKit (XCode) for school: "Four In A Row" game.
I need to create a square grid in my view with custom items inside (1 vertical stack with N horizontal stacks containing N buttons).
So, the light blue square is a UIView I added to the superview, it's called "squareView".
I'm trying to insert a UIStackView programmatically to the squareView.
It works, almost, because I need the stack to fill the entire squareView and as you can see it doesn't take the entire accessible space.
How can I solve this?