Answers for "swift check if string contains string"

4

swift check if string contains string

let string = "hello Swift"
if string.contains("Swift") {
    print("exists")
}
Posted by: Guest on January-30-2020

Code answers related to "swift check if string contains string"

Code answers related to "Swift"

Browse Popular Code Answers by Language