Where did the Object Library go in Xcode 10?

XcodeUser InterfaceXcode10

Xcode Problem Overview


In Xcode 10, where is the Object Library which shows view and controller objects, code snippets and media that used to appear towards the lower right corner in Xcode 9 and older?

Xcode 9:

Xcode project window showing object library

Xcode 10:

Xcode project window showing the same space as the Xcode 9 window, empty

Xcode Solutions


Solution 1 - Xcode

Shortcuts:

  • Shift + Command + L: Show Library.

  • Shift + Command + M: Show Media Library.


Xcode 10 has added a toolbar button to access the Object Library.

enter image description here

From a thread on Apple Developer Forum:

> Library content has moved from the bottom of the Inspector area to an overlay window, which can be moved and resized like Spotlight search. It dismisses once items are dragged, but holding the Option key before dragging will keep the library open for an additional drag. > > The library can be opened via a new toolbar button, the View > Libraries menu, or the ⇧⌘L keyboard shortcut. Content dynamically matches the active editor, so the same UI provides access to code snippets, Interface Builder, SpriteKit, or SceneKit items. The media library is available via a long press on the toolbar button, the View > Libraries menu, or the ⇧⌘M keyboard shortcut. (37318979, 39885726)

Solution 2 - Xcode

What the existing answers (so far) neglect to mention is that if you hold Option as you summon the Library window — i.e., press Shift + Option + Command + L, or hold Option while clicking the Library button in the toolbar — the window stays open, permanently, until you explicitly close it with its Close button.

enter image description here

It is not incorporated (docked) into the current project window, but it can be used in any project. The point is that it becomes almost a normal window (to be precise, it becomes a normal floating window).

Solution 3 - Xcode

XCode 11 - Object library location

Click on the plus icon on the top right corner of Xcode topbar.

enter image description here

Solution 4 - Xcode

The library can be opened via a new toolbar button, the View → Libraries menu, or the Shift + Command + L keyboard shortcut.The media library is available via a long press on the toolbar button, the View → Libraries menu, or the Shift + Command + M keyboard shortcut.

Library content has moved from the bottom of the Inspector area to an overlay window, which can be moved and resized like Spotlight search. It dismisses once items are dragged, but holding the Option key before dragging will keep the library open for an additional drag.

Solution 5 - Xcode

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

Solution 6 - Xcode

Xcode 12 users can find the same option as the Xcode 11 as written above.

Shift Command L to bring up the Objects/Image/Color and other context-sensitive libraries.

There is also the + sign at the top right of the window titled Library when you mouseover.

This drove me crazy trying to follow a tutorial that was likely written for Xcode 10. Thanks for the rest of those that answered!

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionHuaThamView Question on Stackoverflow
Solution 1 - XcodeHuaThamView Answer on Stackoverflow
Solution 2 - XcodemattView Answer on Stackoverflow
Solution 3 - XcodeChamath JeevanView Answer on Stackoverflow
Solution 4 - XcodeIKKAView Answer on Stackoverflow
Solution 5 - XcodeAdrianView Answer on Stackoverflow
Solution 6 - XcodeAaronView Answer on Stackoverflow