Xcode Storyboard 使按钮高度等于底部布局指南(或安全区域下方的 space)+ 常数?

Xcode Storyboard make button height equal to bottom layout guides (or the space below the safe area) + a constant?

我想让我的按钮高度等于一个常量 + 安全区域底部和超级视图底部之间的 space(或者之前调用的 "Bottom layout guides" 并设置它来自故事板,可能带有约束或其他内容,但不是以编程方式。

您只能将约束绑定到一个视图,所以如果您真的想从 SB 执行此操作,请插入一个 0 宽度/清晰的视图,您将其约束为 "the space between the bottom of the safe area and the superview bottom" 并将按钮设置为等于该视图视图的高度 + 您的限制条件