Top layout guide

When I control-drag a control at the top of a scroll view to the space above the control, I do not see an option to add a constraint to the top layout guide but instead an option to add a constraint for top space to container. How do I set the constraints to the top layout guide?

There is usually a very small region where you can select the top layout guide even if the view you are dragging from is right up against the top of the view controller. But if there isn’t you can do one of two things: First, make the view smaller so you can easily select a gap above it, and access the top layout guide. Second, use the sidebar to drag from the scrollview to its parent view. Often with the second way you will find options that Xcode is “helpfully” removing from your options when you do it visually.