I have four buttons inside a view container. I want to have the space between the buttons automatically resized equally depending on the device's screen size.
The view container is constrained as follows:
- Horizontal and Vertical to Superview
- Equal With to Superview
- Leading and Trailing Space to Superview
Then I constrained each button with:
- Equal With and Height
- Vertical Space to the view container.
After this point whatever combination I try I can't get the buttons have equal space between them. I tried giving them Horizontal Spacing Constrain but that didn't do the trick. Attached is the effect I would like to create. Can anyone please explain how to accomplish this?