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
You can just write your String Extension for comparison in just a few line of code
extension String { func compare(_ with : String)->Bool{ return self.caseInsensitiveCompare(with) == .orderedSame } }