I need to use a custom stencil for fonts in my project. However, when the code is generated, the generation command's enumName parameter is ignored and is not passed properly as when using default templates. As I have multiple targets and a shared UI framework in the same project, it causes compiler confusion as to which FontFamily to use.
The custom stencil still has the following code for enum name:
What happened?
I need to use a custom
stencil
for fonts in my project. However, when the code is generated, the generation command'senumName
parameter is ignored and is not passed properly as when using default templates. As I have multiple targets and a shared UI framework in the same project, it causes compiler confusion as to whichFontFamily
to use.The custom stencil still has the following code for enum name:
Surprisingly, the
accessModifier
ispublic
, so based on the following template codethe
publicAccess
param does seem to be passed into the stencil.How do we reproduce it?
ABCFontFamily
..stencil
file for fonts (from SwiftGen's repository),Fonts.stencil
and place it inTuist/ResourceSynthesizers
tuist generate
enumName
is ignored and the fonts enum has the default value ofFontFamily
.Error log
n/a
macOS version
15.0.1 (24A348)
Tuist version
4.28.1 (Homebrew)
Xcode version
16.0 (16A242d)