208

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

1
  • 2
    Absolutely annoying this new thing, event with this stupid option-click thing 😡 Aug 12, 2019 at 22:51

6 Answers 6

283

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)

18
  • 48
    It'd be nice if there was a way to pin this Object Library open, without requiring me having to constantly hold the "Option" key.
    – Paul Solt
    Aug 12, 2018 at 17:50
  • 241
    There is a place reserved in hell, for the moron who came up with this idea. I hate having to reopen it every time, it just slows your workflow down. They could have integrated the search feature into the sidebar too, so theres no need for a separate window. Sep 19, 2018 at 20:02
  • 7
    I second this motion. Sure, if I had the time I could have participated in the Xcode 10 betas and rendered an opinion, but to not make it pin-able is shortsighted.
    – P. Ent
    Sep 20, 2018 at 1:18
  • 7
    I second the second to the motion. Absolutely ridiculous. Should be an option to dock it back where it belongs.
    – Agreensh
    Sep 20, 2018 at 9:39
  • 7
    I figured I was doing something wrong in the Xcode 10 betas so it wasn't being docked - this is completely ridiculous, the PM on this should be replaced. This is like stepping back to the earliest versions of Xcode which opened windows all over the place. what a mess! Sep 22, 2018 at 13:18
128

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

5
  • So holding Option while clicking on the library doesn't work, but Shift-Option-Command-L does. Thank f!@# for that!
    – Mof
    Sep 24, 2018 at 4:40
  • 2
    @Mof Not sure what you mean about "doesn't work". Holding Option while clicking the Library button in the toolbar does work.
    – matt
    Sep 24, 2018 at 16:36
  • Props for figuring that out.
    – Joseph
    Sep 29, 2018 at 0:48
  • 2
    @juniorRubyist I can't take credit; it's in the Xcode release notes. :)
    – matt
    Sep 29, 2018 at 1:09
  • 2
    I most certainly respect your optimism and solution, I just can't get over how bad this is in terms of UX on Apple's part. Imagine if google took the URL bar out of chrome and made you open it in a separate window and pin it to the main window. Why create any friction in order for users to interact with one of the most commonly utilized pieces of the system? Nov 30, 2018 at 17:23
39

XCode 11 - Object library location

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

enter image description here

3
  • 1
    This worked for me. Alternate route: from Xcode top nav bar View -> Show Library
    – GraehamF
    Oct 12, 2019 at 20:02
  • 2
    Do you know how to make it fixed in the right bottom corner how it used to be in previous versions? Thanks.
    – ukw
    Nov 8, 2019 at 13:07
  • 1
    If you hold down the option key (called the alt key on some Apple keyboards) when pressing the + icon at the top of the Xcode window, the Object Library remains open, rather than disappearing all the time. It doesn't embed itself into the Xcode window. The Object Library will disappear if you select an application other than Xcode but it comes back when you reselect Xcode
    – paulo62
    Mar 27, 2020 at 17:44
19

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.

13

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

1

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!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.