Skip to content

You're viewing documentation for a pre-release version. View the latest stable version

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