You want to be able to define constraints that change the way a UI component is horizontally or vertically aligned on its superview.
specifier in the formatting string for your constraint to dictate
horizontal alignment and the
orientation specifier to dictate vertical alignment.
I won’t pretend the Visual Format Language is easy to understand. It is indeed very cryptic. For this reason, I will give you a few examples that hopefully will clear things up. All of these examples will change the horizontal alignment of a button on the screen:
As you can see, the formatting might take you some time to get used to. However, once you get the hang of the basics of it, it will slowly start to make sense. The same rules apply for vertical alignment, which uses ...