Autolayout: content hugging vs content compression priority


1. Hugging

large => UIView will strongly hug content

small => UIView will potentially be larger than content

2. Compression

large => UIView will resist being smaller than content

small => UIView can shrink so its size is smaller than content


Leave a Reply

Your email address will not be published. Required fields are marked *