Desktop App Productivity ★ 9,544 stars on GitHub

SwiftGen

SwiftGen automates code generation for your app's assets, fonts, and text files so you never have to worry about broken text references.

Visit Official Site

Guide and Overview

What it does in plain English

SwiftGen scans your app project folders to automatically turn images, text strings, fonts, and design files into safe, pre-checked constants. Instead of typing raw words that can easily cause typos or app crashes, your editor will instantly suggest valid names through auto-completion. It integrates smoothly into your workflow so your compiled app always stays perfectly synchronized with your latest design assets.

Who it’s for

  • Mobile app creators looking to eliminate manual text lookups and runtime crashes.
  • Development teams wanting consistent, automatically updated asset references across all contributors.
  • Programmers who prefer instant auto-completion over guessing image and color names.

Key features

  • Automatically creates type-safe references for images, colors, fonts, and text files.
  • Fully customizable output formats using flexible text templates.
  • Eliminates messy manual constant files by generating code directly from your project folders.
  • Protects your application against accidental typos that usually cause crashes when running.
  • Supports popular package managers and command-line setups for easy project integration.

How to install (Download)

You can download the latest release files directly from the Official GitHub Releases Page.

If you prefer package managers or command-line tools, you can install it via:

  • Homebrew: Run brew install swiftgen in your terminal.
  • CocoaPods: Add pod 'SwiftGen', '~> 6.0' to your Podfile.
  • Mint: Run mint install SwiftGen/SwiftGen.

Pros and Cons

  • Pros: Completely eliminates string-related typos, highly customizable output templates, integrates smoothly into build steps.
  • Cons: Requires setting up a configuration file and learning basic command-line commands.

Optional commercial services unrelated to the open-source developer. Clicking an #ad link helps fund HubHum at no extra cost to you.

  • ★ Top Recommended — Systeme.io: Free-forever all-in-one platform to build landing pages, newsletters, and automated workflows with zero monthly fees — Activate Systeme.io → (#ad)
  • AdGuard: Block intrusive ads, tracking scripts, and phishing domains system-wide across all browsers and desktop apps — AdGuard (#ad)
  • InterServer: Launch and host self-hosted web apps 24/7 on managed Linux cloud VPS servers starting at $3/month — InterServer (#ad)

Official Source & Credits: Official Source / Credits

Affiliate transparency (#ad): Some links on this page are affiliate links. If you choose to activate a service through them, we may earn a commission at no extra cost to you.

Your Saved Favorites

Your favorite apps are saved right here in this browser.


Sign in with one click to link your GitHub profile and sync favorites.