# Vary for Traits xCode 13.1

**URL:** <https://forums.kodeco.com/t/vary-for-traits-xcode-13-1/159429>\
**Category:** Auto Layout by Tutorials\
**Created:** [December 5, 2021, 6:04pm UTC](https://forums.kodeco.com/t/vary-for-traits-xcode-13-1/159429 "2021-12-05T18:04:37Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![will\_l-b](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/will_l-b/32/105896_2.png) [@will\_l-b](https://forums.kodeco.com/u/will_l-b)\
**Post date:** [December 5, 2021, 6:04pm UTC](https://forums.kodeco.com/t/vary-for-traits-xcode-13-1/159429/1 "2021-12-05T18:04:37Z")

</div>

Chap 10 page 190 is about adding a constraint for a size class using “Vary for Traits” command from the popup on the “Device Configuration Bar”.

However WHERE / HOW is a new constraint created for a particular size class in xCode 13.1 ???

The popup seems to have disappeared in the current xCode 13.1.

The release notes 13.1 state:  
" \* Interface Builder has a redesigned canvas bottom bar with popovers for changing devices and layout, and toggles for changing device appearance and orientation. (68288315)"  
( See the Interface Builder section of [Apple Developer Documentation](https://developer.apple.com/documentation/xcode-release-notes/xcode-13-release-notes) )

The mentioned popup seems to have moved in the redesign…

The “+” indicator does show on the attributes inspector for trait classes and there is the “All” and “This Size Class” buttons…

Where did the popup for setting of a size class go?  
THANKS

---

<div class="post-metadata">

**Author:** ![will\_l-b](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/will_l-b/32/105896_2.png) [@will\_l-b](https://forums.kodeco.com/u/will_l-b)\
**Post date:** [December 6, 2021, 12:43pm UTC](https://forums.kodeco.com/t/vary-for-traits-xcode-13-1/159429/2 "2021-12-06T12:43:02Z")

</div>

To add a constraint for a size class:

1. Add the constraint as usual - either control drag or the constraint button. It is now a constraint for all size classes
2. To change the constraint to a size class: select it and open the attributes inspector for the attribute. The bottom checkbox on “installed” has a small plus sign. Touch the plus to open an popup window for size classes.  
 ![Screen Shot 2021-12-06 at 6.35.04 AM](https://files.chunter.kodeco.com/original/3X/b/e/be576e4ea6a61350751be858fdd70839aa358fb1.jpeg)

There is a mention in reddit and the developer forums of the issue. See  
[https://developer.apple.com/forums/thread/690813](https://developer.apple.com/forums/thread/690813)
