# ResgenSwift ResgenSwift is a package, fully written in Swift, to help you automatize ressource update and generation. > 🧐 For all commands, see samples files in `SampleFiles` and use `resgen-swift help` and `resgen-swift help ` for detailed help. ## Fonts Font generator generates an extension of `UIFont` and `Font` (or custom classes). It also prints content of `UIAppFonts` from your project `.plist`. If project `.plist` is specified, it will update `UIAppFonts` content of all `.plist`. iOS required to use the **real name** of the font, this name can be different from its filename. To get the **real name**, it uses `fc-scan`. So, be sure that your `$PATH` variable contains path of `fc-scan`. ```sh USAGE: swift run -c release ResgenSwift fonts [-f] --extension-output-path \ [--static-members ] \ [--visibility ] \ [--extension-name ] \ [--extension-name-ui-kit ] \ [--extension-suffix ] \ [--info-plist-paths ] ARGUMENTS: Input files where fonts ared defined. OPTIONS: -f, -F Should force generation --static-members Tell if it will generate static properties or methods (default: false) --visibility Visibility of extension and properties. Possibles values: public, private, package, internal. Default is internal (default: internal) --extension-output-path Path where to generate the extension. --extension-name Extension name. If not specified, it will generate an Font extension. (default: Font) --extension-name-ui-kit Extension name. If not specified, no extension will be generated. --extension-suffix Extension suffix. Ex: MyApp, it will generate {extensionName}+FontsMyApp.swift --info-plist-paths Info.plist paths (array). Will be used to update UIAppFonts content --version Show the version. -h, --help Show help information. ``` **Example** ```sh swift run -c release ResgenSwift fonts -f "./Fonts/fonts.txt" \ --extension-output-path "./Fonts/Generated" \ --static-members true \ --visibility "public" \ --extension-name "AppFont" \ --extension-name-ui-kit "UIAppFont" \ --extension-suffix "GreatApp" \ --info-plist-paths "./path/one/to/Info.plist ./path/two/to/Info.plist" ``` ## Colors Colors generator generates colorsets in specified xcassets and an extension of `Color` (or a custom class) associated to those colorsets. If the extension name is not specified, no extension will be generated. ```sh USAGE: swift run -c release ResgenSwift colors [-f] \ --style