So I want to have a view which overlaps another view, and has it's center Y aligned to the top of the view it's on top of.
The analogous layout constraints in UIKit would be the following:
let topView: UIView...
let bottomView: UIView...
NSLayoutConstraint.activate([
topView.centerYAnchor.constraint(equalTo: bottomView.top)
])
How can I achieve this?
