Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What do the greyed out constraints in the visual debugger mean?

What does a constraint being greyed out mean? Are those inactive constraints? Or constraints that are applying to the view but not actually a constraint in its constraints array?

enter image description here

like image 543
Alex Bollbach Avatar asked Oct 29 '22 05:10

Alex Bollbach


2 Answers

Those are the inactive constraints. Mostly it happens when you apply constraints on another size class, that size class constraints become inactive if they are not applicable for current size classes.

like image 195
Sivajee Battina Avatar answered Nov 24 '22 07:11

Sivajee Battina


The non-greyed constraints in the list of Auto Layout constraints in the size inspector in the Debug View Hierarchy are the ones that are active — being actually used by the runtime.

The greyed out constraints are the inactive ones, superseded by user explicit constraints, having a lower priority — being ignored by the runtime.

like image 24
Aisha Avatar answered Nov 24 '22 05:11

Aisha