svvoff
svvoff

Reputation: 289

XIB subviews are not visible

I load my project from git and now can not see xib subviews. But if I run project in simulator, subviews are visible and works well. Does somebody know a reason?

empty xib

Upvotes: 2

Views: 579

Answers (2)

Inder Kumar Rathore
Inder Kumar Rathore

Reputation: 39988

The views are added on compact width and any height, and you're viewing your xib in any width and any height

enter image description here

Upvotes: 2

Wain
Wain

Reputation: 119031

It looks like you're using size classes and you have it set to a class where the views aren't installed (which is why they're all dimmed).

Tap on a view and the inspector will tell you which size classes it's installed for. Change the display in Xcode to show that size class, or update the setting so the views are installed in all size classes.

Upvotes: 4

Related Questions