This is a sample project shows how to build adaptive layout using Interface Builder or code, and how to snapshot test it based on the size class environment trait.
Compact - Horizontal Size Class - Trait Collection
Regular - Horizontal Size Class - Trait Collection