Skip Navigation
Instance MethodMethod

generateFile(themes:)

Generates a complete Swift file containing theme settings only.

func generateFile(themes: [(name: String, settings: ThemeSettingsInput)]) -> String

Parameters

themes

The theme names and their settings.

Return Value

The generated Swift source code.

Discussion

This is a convenience for bundles without stylesheets and without a base stylesheet.