Crowdify FB GroupsGeneral Group
Online Tools Group
Crowdify TV Group
Become a Premium or Founding Member
Autolayout: Content hugging VS Content compression resistance priority
We have properties to set content according to content length and device screen size which help us to manage user interface of an application. Content hugging priority and content compression resistance priority helps you to maintain User interface of application.
Let have an example : Place a button with top , leading , trailing and central horizontal constraint.
1) Leading constraint priority :- 1000 Trailing constraint priority :- 1000
Content hugging priority :- Horizontal : 250 Vertical : 250
Content compression resistance priority :- Horizontal : 750 Vertical : 750
Continue your reading here>> Content hugging VS Content compression resistance priority