bagsy/apps/mobile/assets/icons/README.md

2.7 KiB
Raw Blame History

Bagsy App Icons

This directory contains the app icon assets for Bagsy.

Structure

icons/
├── Bagsy.icon/           # Icon Composer project (macOS Xcode)
│   ├── icon.json         # Icon metadata and configuration
│   └── Assets/           # SVG source assets
│       └── Group 1-3.svg # Icon design (shopping bag with winking face)
└── README.md             # This file

Icon Details

  • Format: Icon Composer (.icon) - native Xcode format
  • Design: Shopping bag with winking face, 3DS eShop aesthetic
  • Color Scheme:
    • Primary Orange: #FF6B35 (shopping bag)
    • Navy: #004E89 (eyes/face)
    • Turquoise: #1ABC9C (accents)
    • White: #FFFFFF (background)

What Icon Composer Does

Icon Composer is a macOS/Xcode tool that:

  • Takes a vector design (SVG) and generates all required app icon sizes
  • Automatically creates iOS icons (20×20 to 1024×1024px)
  • Can generate Android adaptive icons
  • Stores metadata in icon.json
  • Expo recognizes and processes .icon folders automatically

Using the Icon

The icon is referenced in app.json:

{
  "icon": "./assets/icons/Bagsy.icon",
  "ios": {
    "icon": "./assets/icons/Bagsy.icon"
  }
}

Expo will automatically:

  1. Process the Icon Composer folder during build
  2. Generate all required iOS icon sizes
  3. Create adaptive icons for Android (if needed)

Updating the Icon

To update the icon:

  1. On macOS with Xcode installed:

    • Open Xcode
    • File → New → App Icon Set
    • Import or modify the design
    • Ensure the .icon folder stays in this directory
  2. What you need:

    • The .icon folder (entire folder, not just individual files)
    • All files inside the .icon folder
  3. After updating:

    • No additional steps needed - Expo will regenerate during next build

Icon Files Inside

  • icon.json - Metadata defining layers, colors, transparency
  • Assets/Group 1-3.svg - The main SVG design

Do not manually edit icon.json or the SVG files. Use Icon Composer to make changes.

Android Adaptive Icon (Future)

If you need more control over Android adaptive icons:

  • Extract the foreground/background from Icon Composer
  • Scale to 5 densities: mdpi (54×54), hdpi (81×81), xhdpi (108×108), xxhdpi (162×162), xxxhdpi (216×216)
  • Add to android.adaptiveIcon in app.json

For now, Expo's auto-generation should suffice.

Resources