Instance Methodswift 6.0.3Swift

lowercased

Returns a lowercase version of the string.

func lowercased() -> String

Returns

A lowercase copy of the string.

Here’s an example of transforming a string to all lowercase letters.

let cafe = "BBQ Café 🍵"
print(cafe.lowercased())
// Prints "bbq café 🍵"