topAnchor
A layout anchor representing the top edge of the layout guide’s frame.
Declaration
var topAnchor: NSLayoutYAxisAnchor { get }Discussion
Use this anchor to create constraints with the layout guide’s top edge. You can combine this anchor only with other NSLayoutYAxisAnchor anchors. For more information, see NSLayoutAnchor.