Alex Bollbach
Alex Bollbach

Reputation: 4590

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

Upvotes: 12

Views: 1880

Answers (2)

Aisha
Aisha

Reputation: 1559

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.

Upvotes: 3

Sivajee Battina
Sivajee Battina

Reputation: 4174

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.

Upvotes: 1

Related Questions