# Hig Components Layout > HIG de Apple para layout y navegación: sidebars, split views, tab bars, lists, tables y windows, adaptados a cada tamaño de pantalla. Fuente: https://skillsagentes.com/skills/raintree-technology/hig-doctor/hig-components-layout Markdown: https://skillsagentes.com/skills/raintree-technology/hig-doctor/hig-components-layout.md Repositorio: https://github.com/raintree-technology/hig-doctor Autor: raintree-technology Licencia: MIT Actualizado: hace 3 meses Coste de contexto: 204 tok instalada, 1.6k tok al activarse, 7.3k tok con todos los archivos del bundle Bundle: 13 archivos, 29 KB Permisos que pide: ninguno declarado ## Instalación Un skill son archivos markdown: los mismos archivos valen para cualquier agente y lo único que cambia es el directorio de destino, es decir la bandera `--agent`. Añade `-g` para instalarlo en todos los proyectos de la máquina. ```bash # Claude Code npx -y skills add raintree-technology/hig-doctor --skill hig-components-layout --agent claude-code # Cursor npx -y skills add raintree-technology/hig-doctor --skill hig-components-layout --agent cursor # Codex npx -y skills add raintree-technology/hig-doctor --skill hig-components-layout --agent codex # Gemini CLI npx -y skills add raintree-technology/hig-doctor --skill hig-components-layout --agent gemini # Windsurf npx -y skills add raintree-technology/hig-doctor --skill hig-components-layout --agent windsurf # Cline npx -y skills add raintree-technology/hig-doctor --skill hig-components-layout --agent cline ``` ## Qué hace - Aplica HIG a layout y navegación: sidebars, split views, tab bars, lists, tables, windows y ornaments. - Empareja el patrón con la plataforma: tabs en iPhone, sidebar jerárquico en iPad/Mac, ornaments en visionOS. - Adapta a tamaño de pantalla y multitarea (Split View, Slide Over, Stage Manager) con componentes de sistema. ## Cuándo usarla - El usuario pregunta por sidebar, split view, tab bar, window design o cómo organizar la app. - El layout se rompe en iPad o hay que elegir entre tabs y sidebar. ## Qué la activa - "¿Tabs o sidebar para esta app?" - "Cómo estructurar la navegación en iPad" - "El layout se rompe al partir la pantalla, ¿cómo lo adapto?" ## Archivos - SKILL.md — 6 KB - references/boxes.md — 1 KB - references/column-views.md — 963 B - references/lists-and-tables.md — 2 KB - references/ornaments.md — 1 KB - references/outline-views.md — 1 KB - references/panels.md — 2 KB - references/scroll-views.md — 3 KB - references/sidebars.md — 2 KB - references/split-views.md — 2 KB - references/tab-bars.md — 2 KB - references/tab-views.md — 1 KB - references/windows.md — 4 KB ## SKILL.md Reproducido tal cual desde raintree-technology/hig-doctor bajo MIT. Esta sección es el documento original y está en inglés. # Apple HIG: Layout and Navigation Components Check for `.claude/apple-design-context.md` before asking questions. Use existing context and only ask for information not already covered. ## Key Principles 1. **Organize hierarchically.** Structure information from broad categories to specific details. Sidebars for top-level sections, lists for browsable items, detail views for individual content. 2. **Use standard navigation patterns.** 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. 3. **Adapt to screen size.** Three-column on iPad collapses to single-column on iPhone. Use size classes and adaptive APIs (NavigationSplitView) for automatic adaptation. 4. **Support multitasking on iPad.** Respond gracefully to Split View, Slide Over, and Stage Manager. Test at every split ratio and size class transition. 5. **Maintain spatial consistency on visionOS.** Windows, volumes, and ornaments in shared space. Position predictably. Use ornaments for toolbars and controls without occluding content. 6. **Use scroll views for overflow content.** Enable paging for discrete content units. Support pull-to-refresh where appropriate. Respect safe areas. 7. **Keep navigation predictable.** Users should always know where they are, how they got there, and how to go back. Use back buttons, breadcrumbs, and clear section titles. 8. **Prefer system components.** UINavigationController, UISplitViewController, NavigationSplitView, and TabView provide built-in adaptivity, accessibility, and state restoration. ## Reference Index | Reference | Topic | Key content | |---|---|---| | [sidebars.md](references/sidebars.md) | Sidebars | Source lists, selection state, collapsible sections, iPad/Mac patterns | | [column-views.md](references/column-views.md) | Column Views | Finder-style browsing, progressive disclosure through columns | | [outline-views.md](references/outline-views.md) | Outline Views | Expandable hierarchies, disclosure triangles, tree structures | | [split-views.md](references/split-views.md) | Split Views | Two/three column layouts, NavigationSplitView, adaptive collapse | | [tab-views.md](references/tab-views.md) | Tab Views | Segmented tabs, page-style tabs, macOS tab grouping | | [tab-bars.md](references/tab-bars.md) | Tab Bars | Bottom tab bars (iOS), badge counts, max tab count | | [scroll-views.md](references/scroll-views.md) | Scroll Views | Paging, scroll indicators, content insets, pull-to-refresh | | [windows.md](references/windows.md) | Windows | macOS/visionOS window management, sizing, full-screen, restoration | | [panels.md](references/panels.md) | Panels | Inspector panels, utility panels, floating panels, macOS conventions | | [lists-and-tables.md](references/lists-and-tables.md) | Lists and Tables | Plain/grouped/inset-grouped styles, swipe actions, section headers | | [boxes.md](references/boxes.md) | Boxes | Content grouping containers, labeled boxes, macOS grouping | | [ornaments.md](references/ornaments.md) | Ornaments | visionOS toolbar attachments, positioning, visibility | ## Navigation Pattern Selection | App Structure | Recommended Pattern | Platform Adaptation | |---|---|---| | 3-5 peer top-level sections | Tab Bar | iPhone: bottom tab bar. iPad: sidebar (`.sidebarAdaptable`, iPadOS 18+). Mac: sidebar or toolbar tabs | | Deep hierarchical content | Sidebar + NavigationSplitView | iPhone: single column stack. iPad: two/three columns. Mac: full multi-column | | Deep file/folder tree | Column View | Mac: Finder-style. iPad: adaptable. iPhone: push navigation | | Flat list with detail | Split View (two column) | iPhone: push/pop stack. iPad/Mac: primary + detail columns | | Document-based with inspectors | Window + Panels | Mac: main window with inspector. iPad: sheet or popover | | Spatial app with tools | Window + Ornaments | visionOS: ornaments on window. Other platforms: toolbars | ## Layout Adaptation Checklist - [ ] **Compact width (iPhone portrait):** Navigation collapses to single stack? Tab bars visible? - [ ] **Regular width (iPad landscape, Mac):** Navigation expands to sidebar + detail? Space used well? - [ ] **Multitasking (iPad):** Adapts at every split ratio? Works in Slide Over? - [ ] **Accessibility:** Supports Dynamic Type at all sizes? VoiceOver order logical? - [ ] **Orientation:** Content reflows between portrait and landscape? - [ ] **visionOS:** Windows positioned ergonomically? Ornaments accessible? Depth meaningful? ## Output Format 1. **Recommended navigation pattern** with rationale for the app's information architecture. 2. **Layout hierarchy** from root container down (e.g., TabView > NavigationSplitView > List > Detail). 3. **Platform adaptation** across targeted platforms and size classes. 4. **Size class behavior** at each transition. ## Questions to Ask 1. What is the app's information architecture? (Sections, hierarchy depth, top-level categories?) 2. How many top-level sections? 3. Which platforms? 4. Need multitasking on iPad? 5. SwiftUI or UIKit? ## Related Skills - **hig-foundations** -- Layout spacing, margins, safe areas, alignment - **hig-platforms** -- Platform-specific navigation conventions - **hig-patterns** -- Multitasking, full-screen, and launching patterns - **hig-components-content** -- Content displayed within layout containers --- *Built by [Raintree Technology](https://raintree.technology) · [More developer tools](https://raintree.technology)* ## Dónde encaja - Categoría: [Diseño y UI](https://skillsagentes.com/categorias/diseno-ui.md) — Sistemas de diseño, trabajo con componentes y acabado visual. - Creador: [raintree-technology](https://skillsagentes.com/creators/raintree-technology.md) — 14 skills en el directorio - [Todas las skills](https://skillsagentes.com/skills.md) - [Ranking de instalaciones](https://skillsagentes.com/ranking.md) ## Otras skills del mismo repositorio - [Hig Components System](https://skillsagentes.com/skills/raintree-technology/hig-doctor/hig-components-system.md): HIG de Apple para experiencias de sistema: widgets, Live Activities, notificaciones, complications, App Clips y shortcuts. - [Hig Components Controls](https://skillsagentes.com/skills/raintree-technology/hig-doctor/hig-components-controls.md): HIG de Apple para controles de selección y entrada: pickers, toggles, sliders, steppers, segmented controls, campos de texto y teclados virtuales. - [Hig Components Dialogs](https://skillsagentes.com/skills/raintree-technology/hig-doctor/hig-components-dialogs.md): HIG de Apple para presentación: alerts, action sheets, popovers, sheets y digit entry. Cuándo interrumpir y cómo confirmar acciones destructivas. - [Hig Components Menus](https://skillsagentes.com/skills/raintree-technology/hig-doctor/hig-components-menus.md): HIG de Apple para menús y botones: menu bar, toolbars, context menus, action buttons, pop-up y pull-down. - [Hig Components Content](https://skillsagentes.com/skills/raintree-technology/hig-doctor/hig-components-content.md): HIG de Apple para componentes de contenido: charts, collection views, imágenes, web views, lockups y visualización de datos. ## Skills relacionadas - [Hig Components Content](https://skillsagentes.com/skills/raintree-technology/hig-doctor/hig-components-content.md): HIG de Apple para componentes de contenido: charts, collection views, imágenes, web views, lockups y visualización de datos. - [Hig Components System](https://skillsagentes.com/skills/raintree-technology/hig-doctor/hig-components-system.md): HIG de Apple para experiencias de sistema: widgets, Live Activities, notificaciones, complications, App Clips y shortcuts. - [Hig Components Controls](https://skillsagentes.com/skills/raintree-technology/hig-doctor/hig-components-controls.md): HIG de Apple para controles de selección y entrada: pickers, toggles, sliders, steppers, segmented controls, campos de texto y teclados virtuales. - [Hig Components Dialogs](https://skillsagentes.com/skills/raintree-technology/hig-doctor/hig-components-dialogs.md): HIG de Apple para presentación: alerts, action sheets, popovers, sheets y digit entry. Cuándo interrumpir y cómo confirmar acciones destructivas. - [Hig Components Menus](https://skillsagentes.com/skills/raintree-technology/hig-doctor/hig-components-menus.md): HIG de Apple para menús y botones: menu bar, toolbars, context menus, action buttons, pop-up y pull-down. --- Skills Agentes · [Índice de páginas en markdown](https://skillsagentes.com/sitemap.md) · [Inicio](https://skillsagentes.com/index.md)