A VS Code and Cursor extension that provides an Xcode-like interface for previewing and inspecting .xcassets (Asset Catalog) directories. View your iOS, macOS, and other Apple platform assets with the same visual experience you get in Xcode.
- Image Sets - View all scale variants (@1x, @2x, @3x) with device-specific variants (iPhone, iPad, Mac, Apple Watch, Apple TV, Apple Vision)
- PDF Support - View PDF vector assets
- Color Sets - Preview colors with light/dark mode variants, high contrast support, and color space information
- App Icon Sets - Browse app icons organized by size and appearance variants
- Data Sets - View data assets with content preview for text-based files
- Lottie Animations - Preview Lottie JSON and dotLottie (.lottie) animations with playback controls
- Three-Panel Layout - Mimics Xcode's asset catalog viewer:
- Left Panel: Hierarchical asset list with thumbnails and folder navigation
- Middle Panel: Visual preview of selected assets with all variants
- Right Panel: Detailed properties and metadata inspector
- Asset Management - Rename and delete assets or folders directly from the interface
- Search Filter - Filter assets by name in real-time across all folders
- Large Asset Detection - Identify heavy assets with visual warning indicators (
⚠️ ) in the sidebar - SwiftUI Code Snippets - Quick copy resource accessors (e.g.,
Color(.brand)) for Color and Image sets - Variant Selection - Click on individual image/color variants to see detailed properties
- Quick Look - Press Space to open selected assets in macOS Quick Look
- Show in Finder - Right-click any asset to reveal it in Finder
- Resizable Panels - Drag panel dividers to customize the layout
- Open VS Code or Cursor
- Go to Extensions (⌘⇧X / Ctrl+Shift+X)
- Search for "Asset Catalog Viewer"
- Click Install
- Clone this repository
- Run
npm install - Press
F5to open a new Extension Development Host window - The extension will be active in the development host
-
From Explorer:
- Right-click any
.xcassetsdirectory in Explorer - Select "Open Asset Catalog Viewer" from the context menu
- Right-click any
-
From Command Palette:
- Press
⌘⇧P - Type "Open Asset Catalog Viewer"
- Select the command and choose your
.xcassetsdirectory
- Press
You can customize the extension behavior via VS Code settings:
| Setting | Default | Description |
|---|---|---|
assetCatalogViewer.largeAssetThreshold |
500 |
Threshold in KB. Assets larger than this value will show a warning icon in the asset list. |
- Node.js (v18 or later)
- npm
- VS Code
- TypeScript
# Install dependencies
npm install
# Compile TypeScript
npm run compile
# Watch mode for development
npm run watch
# Run linter
npm run lint
# Run tests
npm test# Production build
npm run vscode:prepublish- Open this repository in VS Code
- Press
F5to launch the Extension Development Host - In the development host, open a workspace with
.xcassetsdirectories - Use the context menu or command palette to open the viewer
- VS Code version 1.85.0 or higher
- macOS (for Quick Look functionality)
- Node.js 18.x or later (for development)
Contributions are welcome! Please feel free to submit a Pull Request.
Artem Novichkov, https://artemnovichkov.com
The project is available under the MIT license. See the LICENSE file for more info.
