Contents

lowercased()

Returns a lowercase version of the string.

Declaration

func lowercased() -> String

Return Value

A lowercase copy of the string.

Discussion

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

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

See Also

Changing Case