Skip Navigation
Type MethodMethod

parse(contentsOf:warningHandler:)

Parses theme settings from a file URL.

static func parse(
    contentsOf url: URL,
    warningHandler: (any ThemeParsingWarningHandler)? = nil
) throws -> ThemeSettings.Root

Parameters

url

The URL of the theme-settings.json file.

warningHandler

Receives warnings about unknown keys, or nil to ignore them.

Return Value

The parsed theme settings.

Discussion