A layout anchor representing the left edge of the view’s frame.
SDK
- macOS 10.11+
Framework
- App
Kit
Declaration
var leftAnchor: NSLayout XAxis Anchor { get }
Discussion
Use this anchor to create constraints with the view’s left edge. You can only combine this anchor with a subset of the NSLayout
anchors. You can combine a left
with another left
, a right
, or a center
. For more information, see NSLayout
.