Home > Blockchain >  Where is dragThatCannotResizeWindow in Interface Builder/Storyboard?
Where is dragThatCannotResizeWindow in Interface Builder/Storyboard?

Time:09-15

I found the enter image description here

I tried looking up dragThatCannotResizeWindow storyboard on Google, and nothing useful came up (< 50 results!)

There are also a bunch of other priorities like dragThatCanResizeWindow, and fittingSizeCompression, which I'm also interested about.

One guess I had was that unlike required, defaultHigh, defaultLow, these "semantic" priorities don't have a fixed value, and hence cannot be selected in the storyboard.* Is this true? If so, what does their values depend on?

*This is kind of a weak reason since semantic colors like "label" and "background" don't have a fixed value either and they are in IB...

CodePudding user response:

.Priority is a struct with these "semantic" defined values:

.required:                       1000.0
.defaultHigh:                     750.0
.dragThatCanResizeWindow:         510.0
.windowSizeStayPut:               500.0
.dragThatCannotResizeWindow:      490.0
.defaultLow:                      250.0
.fittingSizeCompression:           50.0

As we know, Storyboard / IB lists only Required, High and Low ... but we can type any value between 0 and 1000 into the Priority field.

  • Related