How to set the same size of views within a NSStackView?

I have a vertical NSStackView with views, which should have the same width as the stack view itself. I havn't found

any property of the stack view to say all subviews should have the same width. Do I missed something,

or do I really have to specify additional constraints like subview.width = stackview.width ?

Okay I found a way by setting the hugging priority:


[stackView setHuggingPriority:NSLayoutPriorityWindowSizeStayPut forOrientation:NSLayoutConstraintOrientationHorizontal];

How to set the same size of views within a NSStackView?
 
 
Q