Contents

centerYAnchor

A layout anchor representing the vertical center of the layout guide’s frame.

Declaration

var centerYAnchor: NSLayoutYAxisAnchor { get }

Discussion

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

See Also

Creating Constraints Using Layout Anchors