相对于同一堆栈中另一个标签的宽度约束,为 Storyboard 上的标签设置宽度约束

Setting width constraint for label on Storyboard relative to the width constraint of another label in the same stack

如何使用 Storyboard 在 swift 上设置我的标签的宽度约束,使其始终等于同一堆栈中另一个标签的宽度?

按住 Ctrl 键并单击并从一个标签拖动到另一个标签。

松开鼠标按钮。

然后 select 弹出窗口中的等宽。