Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode 11 isn't showing object library in SwiftUI

I have installed Xcode 11 and as apple suggest in https://developer.apple.com/tutorials/swiftui/creating-and-combining-views link I opened the object library but there are only three option one for code snippet, second for media and the third one is for color but not seeing object library in the + icon that is placed on the top right corner

1) tried to open the object library as apple suggest.

please see this screenshot

Image

should show object library

like image 582
dinesh sharma Avatar asked Jun 10 '19 06:06

dinesh sharma


People also ask

Where is the object library in Xcode 11?

In Xcode 11 use Shift + Command + L to show the Object Library.

Where is the object library in Xcode 12?

You can view the Library by choosing View, Utilities, Show Object Library from the menu bar (Control+Option+Command+3). If it isn't already visible, the Utility area of the Xcode interface opens, and Object Library is displayed in the lower right.

Where is the object library in Xcode 13?

In Xcode 13, the Object library is hidden by default. You have to click the + button at the top menu, as displayed in figure 3-14, to make it appear as a floating window. The Object library contains all the available UI objects such as button, label, image view for you to design your user interface.

How do I see library in Xcode?

Use the keyboard shortcut shift-command-L (⇧⌘L) to open the library. This opens the snippet browser in the source editor or the object browser in Interface Builder. Use shift-command-M (⇧⌘M) to open the media library.


4 Answers

If you are coding in SwiftUI , please remember to keep canvas editor open and then click on the plus button of object library . If your canvas editor is close , selecting object library (cmd + shift +l) won't show the object list in the library .

like image 161
Vivek Avatar answered Oct 19 '22 18:10

Vivek


As @Mo Reza Farahani's comment "You need macOS 10.15 Catalina installed to enable the object library". After installed macOS 10.15(Beta) it is working fine.

After update you can see object library

like image 20
dinesh sharma Avatar answered Oct 19 '22 17:10

dinesh sharma


It is not working on existing projects, which is already created in Xcode10.14 or less.You have to Create new project to see all these options!

like image 21
komara Avatar answered Oct 19 '22 18:10

komara


In your xcode 11 please press the + sign in the top of the xcdoe. It will open the dialog box with the object library.

like image 23
Ambrose Jesuraj Avatar answered Oct 19 '22 18:10

Ambrose Jesuraj