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
Phone numbers comparison example; using swift 4.2
var selectPhone = [String]() if selectPhone.index(where: {$0.caseInsensitiveCompare(contactsList[indexPath.row].phone!) == .orderedSame}) != nil { print("Same value") } else { print("Not the same") }