Content HuggingContent Compression in Autolayout

suggest change

Remarks

Content Compression Resistance Priority

This value determines how resistant a view is to being compressed, or shrunk. A higher value here means the view will be less likely to be compressed and more likely to stay the same.

Content Hugging Priority

This value determines how resistant a view is to being expanded. You can imagine “hugging” here to mean “size to fit” – the bounds of the view will “hug” or be close to the intrinsic content size. A higher value here means the view will be less likely to grow and more likely to stay the same.

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents