I just started learning swift so my question must seem trivial to you.
After applying Autolayout to the button by adding alignment constraints where "Horizontally in Container" and "Vertically in Container" both set to 0 , and by adding another constraints where width and height both set to 100.
After that, I removed the "Vertically in Container" constraint just to see what happen and I saw error on the height. Same is true when I removed "Horizontally in Container" only which showed error on the width. What does this error actually mean and why it shows that?
Also I never understood the phrases "Vertically in Container" & "Horizontally in Container". When I apply "Vertically in Container" only, a horizontal line appears on the storyboard which seems confusing because you would expect vertical line since the phrase has vertical in it. Why is that?
Error on height of button after removing "Vertically in Container" constraint
I can't post more pictures because I don't have more than 10 reputation points.