DocumentUI+SwiftLangUI as template engine for Sourcery
- Install Sourcery from https://github.com/Everything-as-UI/Sourcery;
- Clone this repository;
- Copy
SourceryTemplateEnginefolder to your project; - Add your templates to
SourceryTemplateEngine/SwiftTemplate/{version}/Templatesbased onSwiftLangUIor another third-party code generation library that you can add toSourceryTemplateEngine/SwiftTemplate/{version}/Package.swift; - Run command:
sourcery --output {output-path} --templates {path-to-templates} --sources {path-to-sources} --buildPath SourceryTemplateEngine --cacheBasePath SourceryTemplateEngine/SwiftTemplate/{version}/.cache