{"slug":"hig-components-content","title":"hig-components-content","summary":"When the user displays content in an Apple app: charts, collections and grids, image views, image wells, web views, color wells, lockups, or the share sheet (activity views). For charting as a data pattern, see hig-patterns. For lists, tables, and scroll views, see hig-components","platform":"Claude","tags":[],"authorName":"LLM Mart","authorSlug":"llm-mart","score":0,"source":"github","price":null,"verified":false,"createdAt":"2026-11-29T00:42:07.878509Z","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-content\ndescription: &gt;-\nWhen the user displays content in an Apple app: charts, collections and grids, image\nviews, image wells, web views, color wells, lockups, or the share sheet (activity\nviews). For charting as a data pattern, see hig-patterns. For lists, tables, and\nscroll views, see hig-components-layout.\nlicense: MIT. Apple HIG content is © Apple Inc.\nmetadata:\nversion: \"1.1.0\"\nhig-snapshot: \"2025-02-02\"</h2>\n<h1>Apple HIG: Content 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>Adapt to different sizes and contexts.</strong> Content components must work across screen sizes, orientations, and multitasking configurations. Use Auto Layout and size classes.</p>\n</li>\n<li><p><strong>Make content accessible.</strong> Charts need audio graph support. Images need alt text. Collections need proper VoiceOver navigation order. All content components need labels and descriptions.</p>\n</li>\n<li><p><strong>Maintain visual hierarchy.</strong> Use spacing, sizing, and grouping to establish clear information hierarchy. Primary content should be visually prominent.</p>\n</li>\n<li><p><strong>Use system components first.</strong> Evaluate UICollectionView, SwiftUI Charts, WKWebView before building custom. System components come with built-in accessibility and platform adaptation.</p>\n</li>\n<li><p><strong>Respect platform conventions.</strong> A collection on tvOS uses large lockups with parallax. The same collection on iOS uses compact cells with touch targets. On visionOS, content gains depth and hover effects.</p>\n</li>\n<li><p><strong>Handle empty states.</strong> Show a meaningful empty state with guidance on how to populate it, not a blank screen.</p>\n</li>\n<li><p><strong>Optimize for performance.</strong> Use lazy loading, cell reuse, pagination, and prefetching for large datasets.</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/charts.md\">charts.md</a></td>\n<td>Charts</td>\n<td>Swift Charts, bar/line/area/point marks, chart accessibility, audio graphs</td>\n</tr>\n<tr>\n<td><a href=\"references/collections.md\">collections.md</a></td>\n<td>Collections</td>\n<td>Grid/list layouts, compositional layout, selection, reordering, diffable data sources</td>\n</tr>\n<tr>\n<td><a href=\"references/image-views.md\">image-views.md</a></td>\n<td>Image Views</td>\n<td>Aspect ratio handling, content modes, SF Symbol images, accessibility</td>\n</tr>\n<tr>\n<td><a href=\"references/image-wells.md\">image-wells.md</a></td>\n<td>Image Wells</td>\n<td>Drag-and-drop image selection, macOS-specific, placeholder content</td>\n</tr>\n<tr>\n<td><a href=\"references/color-wells.md\">color-wells.md</a></td>\n<td>Color Wells</td>\n<td>Color selection UI, system color picker, custom color spaces</td>\n</tr>\n<tr>\n<td><a href=\"references/web-views.md\">web-views.md</a></td>\n<td>Web Views</td>\n<td>WKWebView, SFSafariViewController, navigation controls, content restrictions</td>\n</tr>\n<tr>\n<td><a href=\"references/activity-views.md\">activity-views.md</a></td>\n<td>Activity Views</td>\n<td>Share sheets, activity items, custom activities, action extensions</td>\n</tr>\n<tr>\n<td><a href=\"references/lockups.md\">lockups.md</a></td>\n<td>Lockups</td>\n<td>Image+text elements, tvOS card layouts, focus effects, shelf layouts</td>\n</tr>\n</tbody>\n</table>\n<h2>Component Selection Guide</h2>\n<table>\n<thead>\n<tr>\n<th>Content Need</th>\n<th>Recommended Component</th>\n<th>Platform Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Visualizing quantitative data</td>\n<td>Charts (Swift Charts)</td>\n<td>iOS 16+, macOS 13+, watchOS 9+</td>\n</tr>\n<tr>\n<td>Browsing a grid or list of items</td>\n<td>Collection View</td>\n<td>Compositional layout for complex arrangements</td>\n</tr>\n<tr>\n<td>Displaying a single image</td>\n<td>Image View</td>\n<td>Support aspect ratio fitting; provide accessibility description</td>\n</tr>\n<tr>\n<td>Selecting an image via drag or browse</td>\n<td>Image Well</td>\n<td>macOS primarily; use image pickers on iOS</td>\n</tr>\n<tr>\n<td>Selecting a color</td>\n<td>Color Well</td>\n<td>Triggers system color picker; macOS, iOS 14+</td>\n</tr>\n<tr>\n<td>Showing web content inline</td>\n<td>Web View (WKWebView)</td>\n<td>Use SFSafariViewController for external browsing</td>\n</tr>\n<tr>\n<td>Sharing content to other apps</td>\n<td>Activity View</td>\n<td>System share sheet with configurable activity types</td>\n</tr>\n<tr>\n<td>Content card (image + text)</td>\n<td>Lockup</td>\n<td>Primarily tvOS; adaptable to other platforms</td>\n</tr>\n</tbody>\n</table>\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>Component recommendation with rationale</strong>, referencing the relevant HIG reference file.</li>\n<li><strong>Configuration guidance</strong> -- key properties and setup.</li>\n<li><strong>Accessibility requirements</strong> for the recommended component.</li>\n<li><strong>Platform-specific notes</strong> for targeted platforms.</li>\n</ol>\n<h2>Questions to Ask</h2>\n<ol>\n<li>What type of content? (Quantitative data, images, web content, browsable collection, share action?)</li>\n<li>Which platforms?</li>\n<li>Static or dynamic content?</li>\n<li>How much content? (Few items vs hundreds/thousands affects component choice and optimization.)</li>\n</ol>\n<h2>Related Skills</h2>\n<ul>\n<li><strong>hig-foundations</strong> -- Color, typography, accessibility, and image guidelines</li>\n<li><strong>hig-patterns</strong> -- Data visualization, sharing, and loading patterns</li>\n<li><strong>hig-components-layout</strong> -- Structural containers (scroll views, lists, split views) hosting content</li>\n<li><strong>hig-platforms</strong> -- Platform-specific component behavior (lockups on tvOS, web views on macOS)</li>\n</ul>\n","files":[{"path":"references/activity-views.md","sizeBytes":1986,"isText":true},{"path":"references/charts.md","sizeBytes":4629,"isText":true},{"path":"references/collections.md","sizeBytes":1155,"isText":true},{"path":"references/color-wells.md","sizeBytes":830,"isText":true},{"path":"references/image-views.md","sizeBytes":1351,"isText":true},{"path":"references/image-wells.md","sizeBytes":916,"isText":true},{"path":"references/lockups.md","sizeBytes":883,"isText":true},{"path":"references/web-views.md","sizeBytes":857,"isText":true},{"path":"SKILL.md","sizeBytes":5047,"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:25.483547Z","sha256":"6A7DEB639EBBD9530482F25E59BDF419B9FBDE8CAD3AD2F1DBD78E78B9B35C25","sizeBytes":9351},"review":null,"source":{"repositoryUrl":"https://github.com/raintree-technology/hig-doctor","path":"skills/hig-components-content","license":"MIT","commit":"4e5025b91b83012e9e17796d173d14eb01047e81","subtreeSha":"A6A6E9BF57C4F401B4ACB8DC483A532D8F1A1326DDFE73FF8D13635EB200F435","lastSyncedAt":"2026-11-29T00:42:06.735218Z"},"reviewedAt":"2026-11-29T00:43:15.930589Z","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-content"},{"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"}]}