Skip Navigation
Instance MethodMethod

generateBadgeDictionary(_:baseIndent:)

Generates Swift code for a badge dictionary.

func generateBadgeDictionary(
    _ badge: [String : String],
    baseIndent: Int
) -> String

Parameters

badge

The badge dictionary to convert.

baseIndent

The base indentation level.

Return Value

The Swift code for the badge dictionary.