How can we compare two strings in swift ignoring case ? for eg :
var a = \"Cash\" var b = \"cash\"
Is there any method that will return tru
Swift 3:
You can also use the localized case insensitive comparison between two strings function and it returns Bool
Bool
var a = "cash" var b = "Cash" if a.localizedCaseInsensitiveContains(b) { print("Identical") } else { print("Non Identical") }