Contents

widthAnchor

A layout anchor representing the width of the layout guide’s frame.

Declaration

var widthAnchor: NSLayoutDimension { get }

Discussion

Use this anchor to create constraints with the layout guide’s width. You can combine this anchor only with other NSLayoutDimension anchors. For more information, see NSLayoutAnchor.

See Also

Creating Constraints Using Layout Anchors