leadingAnchor
A layout anchor representing the leading edge of the view’s frame.
Declaration
var leadingAnchor: NSLayoutXAxisAnchor { get }Discussion
Use this anchor to create constraints with the view’s leading edge. You can only combine this anchor with a subset of the NSLayoutXAxisAnchor anchors. You can combine a leadingAnchor with another leadingAnchor, a trailingAnchor, or a centerXAnchor. For more information, see NSLayoutAnchor.