Skip Navigation
Instance MethodMethod

generateColourDictionary(_:baseIndent:)

Generates Swift code for a colour dictionary.

func generateColourDictionary(
    _ colours: [String : ColorValueInput],
    baseIndent: Int
) -> String

Parameters

colours

The colour dictionary to convert.

baseIndent

The base indentation level.

Return Value

The Swift code for the colour dictionary.