When you want to add a variation to an attribute, you get this popup (I'm using Xcode 8) :
As far as I understand, gamut setting here is for a display type. But I don't understand what it really implies and when I should use it ?
Size classes are traits assigned to user interface elements, like scenes or views. They provide a rough indication of the element's size. Interface Builder lets you customize many of your layout's features based on the current size class. The layout then automatically adapts as the size class changes.
“Auto Layout is a system that lets you lay out your app's user interface by creating a mathematical description of the relationships between the elements. You define these relationships in terms of constraints either on individual elements, or between sets of elements.”
In iOS, Size Classes are groups of screen sizes that are applied to the width and height of the device screen. The two Size Classes that exist currently are Compact and Regular. The Compact Size Class refers to a constrained space. It is denoted in Xcode as wC (Compact width) and hC (Compact height).
Size Classes are the iOS method of creating adaptable layouts that look great on all sizes and orientations of iPhone and iPad. For example, you might want to say that your UI looks mostly the same in portrait and landscape, but on landscape some extra information is visible.
You are correct it is for display types, specifically, for having content tailored for say, screens with P3 Gamut (wide color) like the iPadPro (and probably the new iPhone)
https://webkit.org/blog-files/color-gamut/ https://en.wikipedia.org/wiki/DCI-P3
I think you would mostly use it for images and video, if you have content made for the wide gamut.
I found this, http://asciiwwdc.com/2016/sessions/222 , search for gamut and you can get some of the intent.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With