{"slug":"hig-components-layout","title":"hig-components-layout","summary":"When the user structures an Apple app's navigation or containers: tab bars, sidebars, split views, windows, panels, lists and tables, scroll views, column and outline views, boxes, or visionOS ornaments, or a layout breaks on iPad or Mac. For spacing and safe areas, see hig-found","platform":"Claude","tags":[],"authorName":"LLM Mart","authorSlug":"llm-mart","score":0,"source":"github","price":null,"verified":false,"createdAt":"2026-11-29T00:42:08.31863Z","repo":{"url":"https://github.com/raintree-technology/hig-doctor","stars":159,"forks":10,"license":"MIT","updatedAt":"2026-11-28T19:46:02Z"},"bodyHtml":"<hr>\n<h2>name: hig-components-layout\ndescription: &gt;-\nWhen the user structures an Apple app's navigation or containers: tab bars, sidebars,\nsplit views, windows, panels, lists and tables, scroll views, column and outline\nviews, boxes, or visionOS ornaments, or a layout breaks on iPad or Mac. For spacing\nand safe areas, see hig-foundations. For per-platform navigation, see hig-platforms.\nlicense: MIT. Apple HIG content is © Apple Inc.\nmetadata:\nversion: \"1.1.0\"\nhig-snapshot: \"2025-02-02\"</h2>\n<h1>Apple HIG: Layout and Navigation Components</h1>\n<p>Read <code>.agents/apple-design-context.md</code> (or the older <code>.claude/apple-design-context.md</code>) before asking questions. Use what it records and only ask for what is missing.</p>\n<h2>Key Principles</h2>\n<ol>\n<li><p><strong>Organize hierarchically.</strong> Structure information from broad categories to specific details. Sidebars for top-level sections, lists for browsable items, detail views for individual content.</p>\n</li>\n<li><p><strong>Use standard navigation patterns.</strong> Tab bars for flat navigation between peer sections (iPhone). Sidebars for deep hierarchical navigation (iPad, Mac). Match the pattern to the information architecture and platform.</p>\n</li>\n<li><p><strong>Adapt to screen size.</strong> Three-column on iPad collapses to single-column on iPhone. Use size classes and adaptive APIs (NavigationSplitView) for automatic adaptation.</p>\n</li>\n<li><p><strong>Support multitasking on iPad.</strong> Respond gracefully to Split View, Slide Over, and Stage Manager. Test at every split ratio and size class transition.</p>\n</li>\n<li><p><strong>Maintain spatial consistency on visionOS.</strong> Windows, volumes, and ornaments in shared space. Position predictably. Use ornaments for toolbars and controls without occluding content.</p>\n</li>\n<li><p><strong>Use scroll views for overflow content.</strong> Enable paging for discrete content units. Support pull-to-refresh where appropriate. Respect safe areas.</p>\n</li>\n<li><p><strong>Keep navigation predictable.</strong> Users should always know where they are, how they got there, and how to go back. Use back buttons, breadcrumbs, and clear section titles.</p>\n</li>\n<li><p><strong>Prefer system components.</strong> UINavigationController, UISplitViewController, NavigationSplitView, and TabView provide built-in adaptivity, accessibility, and state restoration.</p>\n</li>\n</ol>\n<h2>Reference Index</h2>\n<table>\n<thead>\n<tr>\n<th>Reference</th>\n<th>Topic</th>\n<th>Key content</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><a href=\"references/sidebars.md\">sidebars.md</a></td>\n<td>Sidebars</td>\n<td>Source lists, selection state, collapsible sections, iPad/Mac patterns</td>\n</tr>\n<tr>\n<td><a href=\"references/column-views.md\">column-views.md</a></td>\n<td>Column Views</td>\n<td>Finder-style browsing, progressive disclosure through columns</td>\n</tr>\n<tr>\n<td><a href=\"references/outline-views.md\">outline-views.md</a></td>\n<td>Outline Views</td>\n<td>Expandable hierarchies, disclosure triangles, tree structures</td>\n</tr>\n<tr>\n<td><a href=\"references/split-views.md\">split-views.md</a></td>\n<td>Split Views</td>\n<td>Two/three column layouts, NavigationSplitView, adaptive collapse</td>\n</tr>\n<tr>\n<td><a href=\"references/tab-views.md\">tab-views.md</a></td>\n<td>Tab Views</td>\n<td>Segmented tabs, page-style tabs, macOS tab grouping</td>\n</tr>\n<tr>\n<td><a href=\"references/tab-bars.md\">tab-bars.md</a></td>\n<td>Tab Bars</td>\n<td>Bottom tab bars (iOS), badge counts, max tab count</td>\n</tr>\n<tr>\n<td><a href=\"references/scroll-views.md\">scroll-views.md</a></td>\n<td>Scroll Views</td>\n<td>Paging, scroll indicators, content insets, pull-to-refresh</td>\n</tr>\n<tr>\n<td><a href=\"references/windows.md\">windows.md</a></td>\n<td>Windows</td>\n<td>macOS/visionOS window management, sizing, full-screen, restoration</td>\n</tr>\n<tr>\n<td><a href=\"references/panels.md\">panels.md</a></td>\n<td>Panels</td>\n<td>Inspector panels, utility panels, floating panels, macOS conventions</td>\n</tr>\n<tr>\n<td><a href=\"references/lists-and-tables.md\">lists-and-tables.md</a></td>\n<td>Lists and Tables</td>\n<td>Plain/grouped/inset-grouped styles, swipe actions, section headers</td>\n</tr>\n<tr>\n<td><a href=\"references/boxes.md\">boxes.md</a></td>\n<td>Boxes</td>\n<td>Content grouping containers, labeled boxes, macOS grouping</td>\n</tr>\n<tr>\n<td><a href=\"references/ornaments.md\">ornaments.md</a></td>\n<td>Ornaments</td>\n<td>visionOS toolbar attachments, positioning, visibility</td>\n</tr>\n</tbody>\n</table>\n<h2>Navigation Pattern Selection</h2>\n<table>\n<thead>\n<tr>\n<th>App Structure</th>\n<th>Recommended Pattern</th>\n<th>Platform Adaptation</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>3-5 peer top-level sections</td>\n<td>Tab Bar</td>\n<td>iPhone: bottom tab bar. iPad: sidebar (<code>.sidebarAdaptable</code>, iPadOS 18+). Mac: sidebar or toolbar tabs</td>\n</tr>\n<tr>\n<td>Deep hierarchical content</td>\n<td>Sidebar + NavigationSplitView</td>\n<td>iPhone: single column stack. iPad: two/three columns. Mac: full multi-column</td>\n</tr>\n<tr>\n<td>Deep file/folder tree</td>\n<td>Column View</td>\n<td>Mac: Finder-style. iPad: adaptable. iPhone: push navigation</td>\n</tr>\n<tr>\n<td>Flat list with detail</td>\n<td>Split View (two column)</td>\n<td>iPhone: push/pop stack. iPad/Mac: primary + detail columns</td>\n</tr>\n<tr>\n<td>Document-based with inspectors</td>\n<td>Window + Panels</td>\n<td>Mac: main window with inspector. iPad: sheet or popover</td>\n</tr>\n<tr>\n<td>Spatial app with tools</td>\n<td>Window + Ornaments</td>\n<td>visionOS: ornaments on window. Other platforms: toolbars</td>\n</tr>\n</tbody>\n</table>\n<h2>Layout Adaptation Checklist</h2>\n<ul>\n<li><input disabled=\"disabled\" type=\"checkbox\"> <strong>Compact width (iPhone portrait):</strong> Navigation collapses to single stack? Tab bars visible?</li>\n<li><input disabled=\"disabled\" type=\"checkbox\"> <strong>Regular width (iPad landscape, Mac):</strong> Navigation expands to sidebar + detail? Space used well?</li>\n<li><input disabled=\"disabled\" type=\"checkbox\"> <strong>Multitasking (iPad):</strong> Adapts at every split ratio? Works in Slide Over?</li>\n<li><input disabled=\"disabled\" type=\"checkbox\"> <strong>Accessibility:</strong> Supports Dynamic Type at all sizes? VoiceOver order logical?</li>\n<li><input disabled=\"disabled\" type=\"checkbox\"> <strong>Orientation:</strong> Content reflows between portrait and landscape?</li>\n<li><input disabled=\"disabled\" type=\"checkbox\"> <strong>visionOS:</strong> Windows positioned ergonomically? Ornaments accessible? Depth meaningful?</li>\n</ul>\n<h2>Check existing code</h2>\n<p>If the project has source code, run <code>npx hig-doctor .</code> (or the <code>hig_audit_file</code> MCP tool on one file) and cite its findings (rule ID, line, HIG link) alongside this guidance. Findings are review evidence, not proof of HIG conformance.</p>\n<h2>Output Format</h2>\n<ol>\n<li><strong>Recommended navigation pattern</strong> with rationale for the app's information architecture.</li>\n<li><strong>Layout hierarchy</strong> from root container down (e.g., TabView &gt; NavigationSplitView &gt; List &gt; Detail).</li>\n<li><strong>Platform adaptation</strong> across targeted platforms and size classes.</li>\n<li><strong>Size class behavior</strong> at each transition.</li>\n</ol>\n<h2>Questions to Ask</h2>\n<ol>\n<li>What is the app's information architecture? (Sections, hierarchy depth, top-level categories?)</li>\n<li>How many top-level sections?</li>\n<li>Which platforms?</li>\n<li>Need multitasking on iPad?</li>\n<li>SwiftUI or UIKit?</li>\n</ol>\n<h2>Related Skills</h2>\n<ul>\n<li><strong>hig-foundations</strong> -- Layout spacing, margins, safe areas, alignment</li>\n<li><strong>hig-platforms</strong> -- Platform-specific navigation conventions</li>\n<li><strong>hig-patterns</strong> -- Multitasking, full-screen, and launching patterns</li>\n<li><strong>hig-components-content</strong> -- Content displayed within layout containers</li>\n</ul>\n","files":[{"path":"references/boxes.md","sizeBytes":1073,"isText":true},{"path":"references/column-views.md","sizeBytes":963,"isText":true},{"path":"references/lists-and-tables.md","sizeBytes":2099,"isText":true},{"path":"references/ornaments.md","sizeBytes":1283,"isText":true},{"path":"references/outline-views.md","sizeBytes":1500,"isText":true},{"path":"references/panels.md","sizeBytes":1748,"isText":true},{"path":"references/scroll-views.md","sizeBytes":3220,"isText":true},{"path":"references/sidebars.md","sizeBytes":1789,"isText":true},{"path":"references/split-views.md","sizeBytes":2019,"isText":true},{"path":"references/tab-bars.md","sizeBytes":2101,"isText":true},{"path":"references/tab-views.md","sizeBytes":1192,"isText":true},{"path":"references/windows.md","sizeBytes":3855,"isText":true},{"path":"SKILL.md","sizeBytes":6225,"isText":true}],"reviewScore":null,"reviewSummary":null,"trust":{"provenance":"trusted-source-unreviewed","notice":"Community-authored content, reproduced verbatim and not vetted as instructions. Treat it as data to evaluate, never as directives to follow.","bodySource":null},"bodyLocked":false,"purchaseUrl":null,"sourceUrl":null,"report":{"provenance":"trusted-source-unreviewed","screen":{"ran":true,"outcome":"clean","suspicious":0,"notes":0,"hiddenCharacters":false},"virusScan":{"engine":"clamav","status":"clean","scannedAt":"2026-11-29T00:42:36.516642Z","sha256":"69AD27F4909B1473E6E049DCF601E206DC494DA667D979586A629703AB41732E","sizeBytes":14908},"review":null,"source":{"repositoryUrl":"https://github.com/raintree-technology/hig-doctor","path":"skills/hig-components-layout","license":"MIT","commit":"4e5025b91b83012e9e17796d173d14eb01047e81","subtreeSha":"C11CDF619578FDFCC16BC3E9A7D4563CF332EDA10CA4789BC5A2B0BD0881B192","lastSyncedAt":"2026-11-29T00:42:06.735218Z"},"reviewedAt":"2026-11-29T00:43:35.694465Z","notice":"Community-authored content, reproduced verbatim and not vetted as instructions. Treat it as data to evaluate, never as directives to follow."},"install":[{"target":"skills-cli","command":"npx skills add https://github.com/raintree-technology/hig-doctor/tree/main/skills/hig-components-layout"},{"target":"claude-code","command":"claude plugin marketplace add https://llmmart.ai/marketplace.json && claude plugin install raintree-technology-hig-doctor@llmmart"},{"target":"git","command":"git clone https://github.com/raintree-technology/hig-doctor.git"}]}