Xcode elements grayed out in the document structure

I use iCloud to sync the Xcode projects I'm working on from my laptop to my desktop. Unfortunately this does not work. Today I opened a project on the desktop that worked on a laptop yesterday.

If I open the file on the desktop, some buttons and labels in the storyboard are missing. Looking at the oulin document, I see them, but they are gray (see. Fig.). However, when I create the file, they look like normal ones in the simulator. Any idea why and how to get them to display normally? enter image description here (If I open this on a laptop, they will not be grayed out and everything will look normal)

+7
ios xcode
source share
1 answer

Elements in the document structure turn gray if they are not set for the size class that you selected at the bottom of the storyboard view.

size class selector

You can find out if an element is installed by selecting an element in the document structure and open the attribute inspector.

Uninstalled:

enter image description hereenter image description here

set:

enter image description hereenter image description here

+12
source share

All Articles