Need to understand the positive and negative value of constraints for progrmattic UI

I was implementing the code that was in the course “Learn Programmatic UI”.

I think there is some typos.

The value will be negative from the right anchor as we are measuring the distance from right to left and as in the graph right to left is -ve.