condition if a string contain a substring swift code example
Example: How do I check if a string contains another string in Swift
let string = "hello Swift"
if string.contains("Swift") {
print("exists")
}
let string = "hello Swift"
if string.contains("Swift") {
print("exists")
}