Answers for "check if a string has a character swift"

6

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 "check if a string has a character swift"

Code answers related to "Swift"

Browse Popular Code Answers by Language