⌥+⌃AltPlusCtrl

Xcode Interface Builder Shortcuts

For apps using Storyboards or XIB files rather than fully programmatic UI, Interface Builder provides a visual canvas for laying out views, and its shortcuts center on viewing that canvas alongside relevant source code and inspecting a selected element's configurable properties. Two more inspector panels round out Interface Builder's core toolkit: the Size Inspector for precise numeric dimension and constraint control, and the Connections Inspector for auditing exactly what's wired to a given UI element.

ActionWindowsMacDescription
Open Assistant EditorCmd+Option+ReturnOpens a second editor pane alongside the main one, commonly used to view a Storyboard or XIB file's Interface Builder canvas next to its corresponding Swift source file simultaneously, essential for dragging out IBOutlet and IBAction connections.
Show Attributes InspectorCmd+Option+4Opens the Attributes Inspector in Interface Builder, exposing configurable properties like a button's title text or a label's font for whatever element is currently selected on the canvas.
Show Size InspectorCmd+Option+5Opens the Size Inspector panel, showing and letting you numerically adjust the exact frame dimensions and Auto Layout constraint values for the currently selected UI element on the canvas, more precise than dragging a resize handle by eye.
Show Connections InspectorCmd+Option+6Opens the Connections Inspector for the selected UI element, listing out every outlet and action tied to it so you can audit or delete an existing wire-up without tracing lines across the canvas by eye.
The Assistant Editor (Cmd+Option+Return) is central to Interface Builder workflows, opening a second editor pane that Xcode attempts to intelligently populate with a file related to whatever's open in the primary pane — most commonly a Storyboard's canvas alongside its corresponding view controller's Swift source, which is exactly the setup needed to Control-drag from a UI element on the canvas into the source code to create an IBOutlet property or IBAction method connection. The Attributes Inspector (Cmd+Option+4) shows configurable properties for whatever UI element is currently selected on the Interface Builder canvas — a button's title text and font, a label's text color, a view's background color — letting you adjust visual properties directly rather than needing to set them programmatically in code, which is often faster for straightforward static configuration that doesn't need to change at runtime. A structural point worth understanding about Interface Builder generally: connections made by Control-dragging from canvas elements into code (creating outlets and actions) are stored as part of the Storyboard or XIB file's own XML-based format, meaning renaming a connected property directly in Swift code without also updating the Storyboard's stored connection can silently break that link, showing up as a runtime crash (specifically an unrecognized-selector or key-value-coding-compliance error) rather than a compile-time error, since Interface Builder's connections aren't checked by the Swift compiler the same way regular code references are. Many modern Xcode projects favor SwiftUI or fully programmatic UIKit layout specifically to avoid this XML-based connection fragility, though Storyboard and XIB-based Interface Builder work remains common in a large number of existing, actively maintained codebases. Beyond the Assistant Editor and Attributes Inspector, Interface Builder's canvas also supports keyboard-driven nudging of a selected UI element's position using the arrow keys (moving it by one point per press, or a larger increment when held with Option), letting you make small layout adjustments without needing pixel-perfect mouse dragging — useful for fine-tuning alignment once an element is already roughly positioned where you want it. Auto Layout constraints, the system underlying most modern Interface Builder layouts, are typically created by Control-dragging between UI elements on the canvas rather than through a dedicated keyboard shortcut, but once a constraint exists, selecting it in the Document Outline or directly on the canvas and using the Attributes Inspector (Cmd+Option+4) lets you adjust its exact value numerically, which is often more precise than trying to drag a constraint's visual handle to an exact number. Because Auto Layout constraints define relationships between elements rather than fixed absolute positions, understanding how a given layout's constraints are structured matters more for predicting its behavior across different screen sizes than simply knowing where elements currently sit on the canvas at one specific device size. The Document Outline, a hierarchical list of every element in the current Storyboard or XIB shown in the editor's left sidebar, provides a text-based alternative to clicking directly on the visual canvas for selecting a specific element — particularly useful for selecting an element that's visually hidden behind another one on the canvas, where clicking precisely on the correct layer with the mouse alone can be fiddly. The Size Inspector (Cmd+Option+5) shows a selected element's exact frame dimensions and, for Auto Layout-based projects, every constraint currently affecting its size and position, each with an editable numeric value — considerably more precise than trying to drag a resize handle on the canvas to an exact pixel or point value by eye, and the standard tool for fine-tuning a layout once its rough visual placement is already correct. The Connections Inspector (Cmd+Option+6) lists every outlet, action, and other connection currently wired to the selected element, showing exactly which source file and property or method each connection links to — a genuinely useful auditing tool for understanding or cleaning up an element's existing wiring without needing to visually trace connection lines on the canvas, particularly valuable when inheriting a Storyboard-heavy project built by someone else where the existing connections aren't yet familiar.