Skip to main content
The #image command adds images to your Xcode asset catalog so your app can reference them by name anywhere in your code. Whether it’s an app icon, a background photo, or a custom illustration, this is how you get images into your app.

What It Does

When you use #image, the AI takes your selected image and:
  1. Adds it to your project’s asset catalog (Assets.xcassets)
  2. Names it based on your description or the original filename
  3. References it in your SwiftUI views wherever you specify
Your image becomes a first-class asset in your Xcode project, available through Image("name") in SwiftUI.

Supported Formats

How to Use

1

Type #image in the chat

Type # and select image from the toolkit popover.
2

Select your image

The file picker opens, filtered to supported image formats. Choose the image you want to add.
3

Describe how to use it

The image appears as an orange chip below the input. Type a description of where the image should go in your app.
4

Send your message

Press Enter. The AI adds the image to your asset catalog and uses it in your app as described.

Example Prompts

Tips for Best Results

PNG supports transparency and keeps edges crisp — ideal for icons, buttons, and interface graphics.
JPEG files are significantly smaller than PNG for photographic content. Use them for backgrounds, hero images, and any photo-based assets.
SVG files are vector-based, so they look sharp at any size. Perfect for icons and illustrations that need to scale across different devices.
The original filename often becomes the asset name. A file called settings-icon.png is much easier to work with than IMG_4392.png.
#image adds the file to your app bundle. If you want to show the AI a design mockup or reference screenshot, drag-and-drop the image directly into the chat instead. Drag-and-drop images are seen by the AI but not added to your project.

Toolkit Overview

See all available # commands and how the toolkit works.

Using Images

Learn more about how Nativeline handles images in your projects.