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?
6 Answers
Shortcuts:
Shift + Command + L: Show Library.
Shift + Command + M: Show Media Library.
Xcode 10 has added a toolbar button to access the Object Library.
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, theView > Libraries
menu, or the ⇧⌘M keyboard shortcut. (37318979, 39885726)
-
48It'd be nice if there was a way to pin this Object Library open, without requiring me having to constantly hold the "Option" key. Aug 12, 2018 at 17:50
-
241There 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
-
7I 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. EntSep 20, 2018 at 1:18
-
7I second the second to the motion. Absolutely ridiculous. Should be an option to dock it back where it belongs.– AgreenshSep 20, 2018 at 9:39
-
7I 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
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.
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).
-
So holding Option while clicking on the library doesn't work, but Shift-Option-Command-L does. Thank f!@# for that!– MofSep 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.– mattSep 24, 2018 at 16:36
-
-
2
-
2I 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
-
1This worked for me. Alternate route: from Xcode top nav bar
View -> Show Library
– GraehamFOct 12, 2019 at 20:02 -
2Do you know how to make it fixed in the right bottom corner how it used to be in previous versions? Thanks.– ukwNov 8, 2019 at 13:07
-
1If you hold down the
option
key (called thealt
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– paulo62Mar 27, 2020 at 17:44
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.
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!