Contents

displayName(with:)

Returns a string suitable for display using the specified locale.

Declaration

func displayName(with locale: Locale) -> String

Parameters

  • locale:

    The locale to use in generating the display name.

Return Value

A string containing the localized display name.

Discussion

The string takes into account this option’s common metadata, media characteristics and locale properties in addition to the provided locale to formulate a string intended for display

See Also

Getting the language and locale settings