Instance Property

trailing​Anchor

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 combine this anchor only with a subset of the NSLayout​XAxis​Anchor anchors. You can combine a UIView with another trailing​Anchor, a leading​Anchor, or a center​XAnchor. For more information, see NSLayout​Anchor.