Explaining this paragraph


#1

“So each of the top three labels has two constraints impacting its width: a required (priority 1000) Equal Widths constraint, and the two implicit constraints that try to keep the label at its intrinsicContentSize. (Content Hugging with a priority of 251, and Content Compression Resistance with a priority of 750). Each of the views wants to satisfy all of these constraints. The only view that will be able to do this, however, is the view that has the maximum width. The other two views will have a required constraint with a higher priority than their Content Hugging Priority, so they will stretch to be the same width as the longest label

Excerpt From: Keur, Christian. “iOS Programming: The Big Nerd Ranch Guide (4th Edition) (Big Nerd Ranch Guides).” iBooks.

Can someone please explain to me as to why the only view that is able to satisfy the 3 constraint stated is the view with the maximum width.


#2

Of the three constraints, the weakest (lowest priority) is the Content Hugging at 251. This means that the first constraint to be broken for any of the labels is that it will stretch out - to the width of the widest cell. If all three take the width of the widest cell,that satisfies the Equal Widths constraint (highest priority) and the Content Compression Resistance constraint (2nd) for all three. The widest cell also satisfies its Content Hugging constraint, but the other two have to break theirs to stretch out.

Does that help?