Xcode 11 isn't showing object library in SwiftUI

Viewed 3440

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

6 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 .

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

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!

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

This happened to me too. To enable the content library you need to add the Canvas view to your workspace. Find Canvas in the Editor menu or Option + Command + Return.

If you have syntax errors in the view you're working on, you won't see it either. Make sure you have no errors and try again.

Related