swift check string contains substring 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")
}