Answers for "how to check string contains a characters in swift"

5

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 "how to check string contains a characters in swift"

Code answers related to "Swift"

Browse Popular Code Answers by Language