capitalized(with:)

Returns a capitalized representation of the string using the specified locale.

Declaration

func capitalized(with locale: Locale?) -> String