Skip Navigation
Instance MethodMethod

generateFile(bundles:baseStylesheets:)

Generates a complete Swift file containing the built-in themes and the base stylesheet.

func generateFile(
    bundles: [ThemeBundleSource],
    baseStylesheets: [ThemeStylesheet]
) -> String

Parameters

bundles

The built-in theme bundles, in the order their cases should appear.

baseStylesheets

The parts of the base stylesheet in application order.

Return Value

The generated Swift source code.