Vary for Traits in Xcode 8


Vary for Traits in Xcode 8

The UI to select the size classes has changed in xcode 8. Now it is as follows:

Any constraints that you add without selecting Vary for Traits options will be considered as for all the size classes( Any Any previously)

enter image description here

To add a constraint to a specific size class add it by selecting:

  • The device at the bottom and by selecting Vary for Traits options of that size class.
  • When you are adding constraints to a specific size class the bar turns blue as below

enter image description here

Leave a comment

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