Changes

Working with Trait Variations in Interface Builder
<htmlet>ios10</htmlet>
== Working with Trait Variations in Interface Builder ==
<htmlet>adsdaqbox_flow</htmlet>
Traits are an optional feature within Interface Builder which, although enabled by default, can be turned on and off on a per storyboard file basis. Whether or not a storyboard file has traits enabled can be verified by loading the file into the Interface Builder environment and displaying the File Inspector in the Utilities panel. Figure 24-1, for example, shows a storyboard file with trait variations enabled:
[[Image:xcode_8_vary_For_traitsxcode_vary_for_traits_mode.png|The device configuration panel with Vary for Traits enabled]]
Figure 24-10
Finally, the Button is selected in the scene and the Auto Layout alignment menu used to center the view both horizontally and vertically.
As long as the vary for traits mode is enabled all layout configuration settings will apply only to the subset of regular width size class configurations shown in the device configuration panel. Once the changes are complete, click on the Done Varying button located on the right-hand side of the device configuration panel to turn off trait variations.
== An Adaptive User Interface Tutorial ==