i want alignement two elements, one in the center and the other in right side
a.WidthAnchor.ConstraintEqualTo(25).Active = true;
a.HeightAnchor.Const
we have 3 views here: container view, bigger view, smaller view.
1. set bigger view's centerX,Y constraints equal to container view's centerX,Y constraints.
2. set smaller view's centerY constraint equal to container view's centerY.
3. set smaller view's right anchor equal to container view's right anchor with offset -8 (or whatever you want)
Hope it helps.