Skip Navigation
Type MethodMethod

letters(for:)

Returns the letters shown by the framed letter icon of a topic type.

static func letters(for type: String) -> String?

Parameters

type

A normalised topic type (see normalisedType(_:)).

Return Value

One or two letters, or nil if the type uses a drawn icon.