Contents

trailingAnchor

A layout anchor representing the trailing edge of the view’s frame.

Declaration

var trailingAnchor: NSLayoutXAxisAnchor { get }

Discussion

Use this anchor to create constraints with the view’s trailing edge. You can only combine this anchor with a subset of the NSLayoutXAxisAnchor anchors. You can combine a trailingAnchor with another trailingAnchor, a leadingAnchor, or a centerXAnchor. For more information, see NSLayoutAnchor.

See Also

Creating Constraints Using Layout Anchors