Skip Navigation
Type MethodMethod

load(from:warningHandler:)

Reads a theme bundle from a directory.

static func load(
    from directory: URL,
    warningHandler: (any ThemeParsingWarningHandler)? = nil
) throws -> ThemeBundleSource

Parameters

directory

The bundle directory, containing theme-settings.json and optional stylesheets.

warningHandler

Receives warnings about unknown keys in the settings.

Return Value

The theme bundle.

Discussion