Answers for "contains where 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 "Swift"

Browse Popular Code Answers by Language