Adaptive Layout in Xcode 8

2019-02-21 13:40发布

I am developing app using Xcode 8 (beta 1). Unfortunately, I am not able to find "Size Classes" option.

In Xcode 7, there was option "Use Size Classes".

enter image description here

But in Xcode 8 there is no such option. Is there any help for using Size Classes or similar in Xcode 8?

2条回答
三岁会撩人
2楼-- · 2019-02-21 14:21

Now you have "Use Trait Variations" which is improved version of Size Classes

enter image description here


You can now select device based and orientation based trait view much like size classes (iPad Pro, iPad, iPhone 6Splus, iPhone 6s, iPhone SE and iPhone 4s)

enter image description here

查看更多
放我归山
3楼-- · 2019-02-21 14:28

Apple introduce new feature called Trait Variations.

Trait Variation

So now you can simply create how it looks on real device.

enter image description here

You can simply switch devices by just clicking and also change the orientation of your view.

查看更多
登录 后发表回答