How do I check if a string contains another string in Swift

Swift
let string = "hello Swift"
if string.contains("Swift") {
    print("exists")
}

Source

Also in Swift: