krzysztofzablocki / Sourcery

Meta-programming for Swift, stop writing boilerplate code.
http://merowing.info
MIT License
7.65k stars 617 forks source link

Possible to generate asset catalog constants? #1279

Closed philipsawyer closed 6 months ago

philipsawyer commented 6 months ago

Hello!

I am trying to migrate away from SwiftGen to Sourcery. One of the things I use SwiftGen for currently is generating constants for our asset catalogs. Is this possible using Sourcery? I looked around the docs and didn't see anything but want to double check.

Thanks!

https://github.com/SwiftGen/SwiftGen#asset-catalog

krzysztofzablocki commented 6 months ago

Hey, so Sourcery isn't a good replacement for SwiftGen, Sourcery takes source code as input and generates whatever, SwiftGen took data and generated code, maybe R.swift or one of the other alternatives would be good if you want to get away from SwiftGen, but Sourcery is always going to be code as input