Perhaps you are doing something like this:
NSLayoutConstraint(item: viewA, attribute:
.leading , relatedBy: .equal, toItem: parentView, attribute: .top, multiplier: 1.0, constant: 20)
So you do not correct the anchor stitch together as .leadingand .top. In this case, it should be .leadingand .leading.
, iOS9.