profile
viewpoint

SwiftGen/SwiftGen 8663

The Swift code generator for your assets, storyboards, Localizable.strings, … — Get rid of all String-based APIs!

SwiftGen/StencilSwiftKit 264

A framework bringing additional nodes & filters to Stencil dedicated to Swift code generation

SwiftGen/SwiftGenPlugin 67

SwiftGen plugin for SPM

SwiftGen/templates 12

Stencil templates for SwiftGen

SwiftGen/SwiftGenKit 9

The framework behind SwiftGen, responsible for parsing various resources and turn them into Stencil contexts

SwiftGen/Eve 2

A repository for shared resources among SwiftGen repos

SwiftGen/swift-docker 2

Docker image for deploying swift applications

SwiftGen/homebrew-core 0

🍻 Default formulae for the missing package manager for macOS

SwiftGen/swiftgen.github.io 0

The website for SwiftGen's home page and documentation

startedSwiftGen/SwiftGen

started time in 15 hours

fork uhooi/SwiftGen

The Swift code generator for your assets, storyboards, Localizable.strings, … — Get rid of all String-based APIs!

fork in 17 hours

startedSwiftGen/SwiftGen

started time in a day

startedSwiftGen/SwiftGen

started time in 2 days

startedSwiftGen/SwiftGen

started time in 2 days

startedSwiftGen/SwiftGen

started time in 3 days

startedSwiftGen/SwiftGen

started time in 3 days

startedSwiftGen/SwiftGen

started time in 3 days

startedSwiftGen/SwiftGen

started time in 4 days

startedSwiftGen/SwiftGen

started time in 4 days

issue openedSwiftGen/SwiftGen

Add ability to fail loudly if run produces diff

Sometimes, a change to an asset catalog gets committed without the corresponding swiftgen command generating source code for it. I have a pre-commit hook, but for whatever reason, sometimes that gets skipped. I don't want to run SwiftGen during every Xcode build for performance reasons.

What I want is to be able to run SwiftGen on my CI server with a --dry-run or --fail-if-diffs mode; something that I can use to fail the build if SwiftGen's output produces any changes. I think the best I can do right now is to run SwiftGen on CI, and then use something like git diff --cached --exit-code --quiet to see if it produced any changes.

created time in 4 days

startedSwiftGen/SwiftGen

started time in 5 days

startedSwiftGen/SwiftGen

started time in 6 days

startedSwiftGen/SwiftGen

started time in 6 days

startedSwiftGen/SwiftGen

started time in 6 days

startedSwiftGen/SwiftGen

started time in 6 days

issue commentSwiftGen/SwiftGen

Color Component Comments for Adaptive Colors in Generated Files

Hello, I have been trying to figure out a way to show the corresponding light and dark hex values for colors but without any success.

I this is possible with the current version of SwiftGen, please let us know otherwise I appreciate it a lot if this feature gets added as it makes looking for colors a lot easier.

Thank you

thewthew

comment created time in 7 days

startedSwiftGen/SwiftGen

started time in 7 days

pull request commentSwiftGen/SwiftGen

Fix warnings in templates caused by SwiftLint 0.51.0

For the time being, we are just ignoring this file from the linter. Hopefully this gets merged soon!

Same. We've just added all of the things in our Generated folder to the ignore list in our SwiftLint config. Honestly, as I think about it more, this may be the preferable long term solution. If it's generated code that no one is manually editing, I don't think I really care about the specific details of the formatting.

ZevEisenberg

comment created time in 8 days

pull request commentSwiftGen/SwiftGen

Fix warnings in templates caused by SwiftLint 0.51.0

For the time being, we are just ignoring this file from the linter. Hopefully this gets merged soon!

ZevEisenberg

comment created time in 8 days

startedSwiftGen/SwiftGen

started time in 8 days

startedSwiftGen/SwiftGen

started time in 8 days

startedSwiftGen/SwiftGen

started time in 10 days

startedSwiftGen/SwiftGen

started time in 10 days

startedSwiftGen/swift-docker

started time in 11 days

startedSwiftGen/SwiftGen

started time in 11 days

startedSwiftGen/SwiftGen

started time in 11 days

startedSwiftGen/SwiftGen

started time in 12 days

issue openedSwiftGen/SwiftGen

Color Component Comments for Adaptive Colors in Generated Files

Hi,

I am using SwiftGen to generate Swift code from color assets in my iOS project. My color assets include adaptive colors that have both light and dark variants.

In the generated files, I would like to see comments for each color that include the color's hexadecimal code and/or the individual color components (Red, Green, Blue, Alpha).

The idea is to have a generated file like this:

enum ColorName {
  /// Lightmode Hex: #RRGGBB
  /// Darkmode Hex: #RRGGBB
 static let primaryBlue = ColorAsset(name: "primaryBlue")
}

However after my research it seems to me that SwiftGen does not provide the hexadecimal color codes or individual color components for adaptive colors in the template context. This makes it impossible for me to include this information in the comments of the generated files.

Can you please consider adding support for this feature? It would be extremely helpful for developers who use adaptive colors in their projects and want to include detailed color information in the comments of their generated files.

Thank you

created time in 12 days

startedSwiftGen/SwiftGen

started time in 12 days

more