In Objective-C the code to check for a substring in an NSString is:
Objective-C
NSString
NSString *string = @\"hello Swift\"; NSRange textRange =[strin
With and new syntax in swift 4 you can just
string.contains("Swift 4 is the best")
string is your string variable