heightAnchor
A layout anchor representing the height of the layout guide’s frame.
Declaration
var heightAnchor: NSLayoutDimension { get }Discussion
Use this anchor to create constraints with the layout guide’s height. You can combine this anchor only with other NSLayoutDimension anchors. For more information, see NSLayoutAnchor.