A VS Code 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.
Features
🎨 Asset Type Support
Image Sets - View all scale variants (@1x, @2x, @3x) with device-specific variants (iPhone, iPad, Mac, Apple Watch, Apple TV, Apple Vision)
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
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
✨ Interactive Features
Search Filter - Filter assets by name in real-time across all folders
Hierarchical Navigation - Expandable folders matching your asset catalog structure
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
PDF Support - Automatic rendering of PDF vector assets
VS Code Theming - Automatically adapts to your VS Code theme (light/dark mode)
Installation
From VS Code Marketplace
Open VS Code
Go to Extensions (⌘⇧X / Ctrl+Shift+X)
Search for "Asset Catalog Viewer"
Click Install
Manual Installation
Clone this repository
Run npm install
Press F5 to open a new Extension Development Host window
The extension will be active in the development host
Usage
Opening an Asset Catalog
From Explorer:
Right-click any .xcassets directory in the VS Code Explorer
Select "Open Asset Catalog Viewer" from the context menu
From Command Palette:
Press ⌘⇧P
Type "Open Asset Catalog Viewer"
Select the command and choose your .xcassets directory
Development
Prerequisites
Node.js (v18 or later)
npm
VS Code
TypeScript
Setup
# 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
Building
# Production build
npm run vscode:prepublish
Debugging
Open this repository in VS Code
Press F5 to launch the Extension Development Host
In the development host, open a workspace with .xcassets directories
Use the context menu or command palette to open the viewer
Requirements
VS Code version 1.85.0 or higher
macOS (for Quick Look functionality)
Node.js 18.x or later (for development)
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.