Instance MethodSwift
capitalized(with:)
iOS 8.0+
iPadOS 8.0+
Mac Catalyst 8.0+
macOS 10.10+
tvOS 9.0+
watchOS 2.0+
Returns a capitalized representation of the string using the specified locale.
func capitalized(with locale: Locale?) -> String
Instance MethodSwift
func capitalized(with locale: Locale?) -> String