python check if substring contained in string swift 5 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")
}