In Objective-C the code to check for a substring in an NSString is:
Objective-C
NSString
NSString *string = @\"hello Swift\"; NSRange textRange =[strin
Here you are:
let s = "hello Swift" if let textRange = s.rangeOfString("Swift") { NSLog("exists") }