Documentation Language: Swift

Function

constantSwiftCode(indentedBy:scopePrefix:)

Swift code representation of a constant

func constantSwiftCode(indentedBy indent: String = "", scopePrefix: String = "") -> (GIR.Constant) -> String

Parameters

indent

The indentation prefix string to use

scopePrefix

A scope prefix to add to the constant declaration, such as `“static”

Return Value

A function that takes a constant and creates the corresponding Swift code indented by indent