Skip to content

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

Instance MethodSwift

uppercased(with:)

iOS 9.0+ iPadOS 9.0+ Mac Catalyst 9.0+ macOS 10.11+ tvOS 9.0+ watchOS 2.0+
Returns a version of the string with all letters converted to uppercase, taking into account the specified locale.
func uppercased(with locale: Locale?) -> String