The lowercased()
method of a string instance in Swift is used to return a lowercase copy of a string.
string.lowercased()
There are no parameters for this method.
The lowercase version of the string
is returned.
// create some stringslet str1 = "Edpresso is the Best"let str2 = "Best PLACE TO BE"let str3 = "Learn all YOU need"// get the lowwer case versionsprint(str1.lowercased())print(str2.lowercased())print(str3.lowercased())
lowercased()
method. The results were printed to the console.