A layout anchor representing the height of the view’s frame.
SDK
- macOS 10.11+
Framework
- App
Kit
Declaration
var heightAnchor: NSLayout Dimension { get }
Discussion
Use this anchor to create constraints with the view’s height. You can only combine this anchor with other NSLayout
anchors. For more information, see NSLayout
.