Xcode 12.5 StackView & Constraints - Where is the Attributes Inspector -> Distribution Menu?

Hi all,

Swift & Coding virgin. Going through Angela Yu's iOs Development Udemy course.

Learning about StackViews & Constraints.

I have created 3 Views stacked on top of each other.

What I'm trying to do:

Set 3 Stacked Views to "Fill Equally" (So when orientated horizontally it all 3 views will fill equally and you can still all 3 views)

My issue: I can't find the menu for "Fill Equally" (Should be under Attributes inspector -> Distribution Menu in the previous version of Xcode that is shown in the tutorial)

Thanks a lot!

Matt

As far as I can see, you have not put a UIStackView on your storyboard.

The view may be named as stackView, but is not a UIStackView. It's just a UIView.

If you had successfully put a UIStackView, it would be shown with a sandwich icon:

I am not sure if you have mistaken or your Xcode is malfunctioning, but you should better remove your Stack View and go back to the part where tutorial shows how to put UIStackView.

Hi OOPer,

Thanks for your answer I'll look into it!

Hi OOper,

Your answer was right on the mark! Worked like a charm. Thanks so much!

Matt

Xcode 12.5 StackView & Constraints - Where is the Attributes Inspector -> Distribution Menu?
 
 
Q