SwiftGen is a tool to automatically generates Swift code for resources of your projects (like images, localized strings, etc), to make them type-safe to use. Also, it's fully customizable thanks to Stencil templates, so even if it comes with predefined templates, you can make your own to generate whatever code fits your needs and your guidelines! SwiftGen is provided as a single command-line tool that uses a configuration file to define the various parsers to run (depending on the type of input files you need to parse) and their parameters. To create a sample configuration file as a starting point to adapt to your needs, run swiftgen config init. To use SwiftGen, simply create a swiftgen.yml YAML file (either manually or using swiftgen config init) then edit it to adapt to your project. The config file should list all the parsers to invoke, and for each parser, the list of inputs/outputs/templates/parameters to use for it.

Features

  • Avoid any risk of typo when using a String
  • Free auto-completion
  • Avoid the risk of using a non-existing asset name
  • All this will be ensured by the compiler and thus avoid the risk of crashing at runtime
  • SwiftGen is based on templates
  • SwiftGen comes bundled with some templates for each of the parsers

Project Samples

Project Activity

See All Activity >

Categories

Code Generators

License

MIT License

Follow SwiftGen

SwiftGen Web Site

Other Useful Business Software
Our Free Plans just got better! | Auth0 Icon
Our Free Plans just got better! | Auth0

With up to 25k MAUs and unlimited Okta connections, our Free Plan lets you focus on what you do best—building great apps.

You asked, we delivered! Auth0 is excited to expand our Free and Paid plans to include more options so you can focus on building, deploying, and scaling applications without having to worry about your security. Auth0 now, thank yourself later.
Try free now
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of SwiftGen!

Additional Project Details

Operating Systems

Apple iPhone

Programming Language

Swift

Related Categories

Swift Code Generators

Registered

2023-05-25