I could not get this code to work. Xcode reports containsString unknown selector.
Code:
var str1 = "This is a Swift string"
println((str1 as NSString).containsString("Swift")) ---true---
You need to be running OS 10.10 before this will work. I'm on 10.9.
Mitch