In Objective-C the code to check for a substring in an NSString is:
Objective-C
NSString
NSString *string = @\"hello Swift\"; NSRange textRange =[strin
In Swift 3
if((a.range(of: b!, options: String.CompareOptions.caseInsensitive, range: nil, locale: nil)) != nil){ print("Done") }