Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What precisely is gamut in size classes?

When you want to add a variation to an attribute, you get this popup (I'm using Xcode 8) :

enter image description here

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 ?

like image 767
Ambroise Collon Avatar asked Aug 31 '17 10:08

Ambroise Collon


People also ask

What are the size classes?

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.

What is Autolayout What is size classes and how can we use it?

“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.”

What are the different size classes for iOS?

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).

What is size classes and how can we use it?

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.


1 Answers

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.

like image 97
solenoid Avatar answered Oct 26 '22 17:10

solenoid