![]() ![]()
templateName: swift5 output: Generated/Assets.swift templateName: structured-swift5 output: Generated/Strings.swift xcassets: ![]() 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. 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. To create a sample configuration file as a starting point to adapt to your needs, run swiftgen config init.Įach parser described in the configuration file ( strings, fonts, ib, …) typically corresponds to a type of input resources to parse (strings files, IB files, Font files, JSON files, …), allowing you to generate constants for each types of those input files. SwiftGen is provided as a single command-line tool which 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. ❗️ If you're migrating from older SwiftGen versions, don't forget to read the Migration Guide.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |