Skip to content

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