contains in string swift code example
Example: swift check if string contains string
let string = "hello Swift"
if string.contains("Swift") {
print("exists")
}
let string = "hello Swift"
if string.contains("Swift") {
print("exists")
}