Every time I try to add something to a UIStackView in iOS it autosizes my subviews into something that is too small, so the text is being cut off.
How exactly is this StackView supposed to be used? All the guides said it was easy, just drag your subviews inside it, but I must be doing something wrong..
Before adding to StackView:
After Adding to StackView:
This is because stackview itself needs constraints. Add constraints to your stackview and then the stackview will take care of subviews.
In this case stackview is positioned horizontally and vertically center in container.
Let me know if there is still any issue.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With