ea833fbae78071733443c94fff3a587ea9243650
ResgenCLI
A description of this package.
Fonts generator
Font generator generate an extension of UIFont (or a custom class). It also print UIAppFonts to put in your project .plist.
iOS required to use the real name of font, this name can be different from its filename. To get the real name, it use fc-scan.
Example
swift run -c release FontToolCore ./SampleFiles/Fonts
--extension-output-path ./SampleFiles/Fonts/Generated \
--extension-name R2Font
Parameters
-f: force generation- Font input folder, it will search for every
.ttfand.otffiles --extension-output-path: path where to generate generated extension--extension-name(optional) : name of class to add the extension
⚠️ If extension name is not set or is
UIFont, it will generate static property onUIFont.
Colors generator
swift run -c release ColorToolCore -f ./SampleFiles/Colors/sampleColors1.txt
--style all \
--xcassets-path "./SampleFiles/Colors/colors.xcassets" \
--extension-output-path "./SampleFiles/Colors/Generated/" \
--extension-name "UIColor"
TODO
- Remove
Generatedfolder fromSampleFiles/ColorsandSampleFiles/Font. CreateGeneratedfolder next toSampleFilesand add it to.gitignore. Update samples commands andgenAllRessources.shaccordingly. - Generate strings and tags
- Generate images
Description
🪲 Minor bugs fixes
Latest
Languages
Swift
98.6%
Shell
1.1%
Makefile
0.3%