Swift Check If String Contains String

[Solved] Swift Check If String Contains String | Swift - Code Explorer | yomemimo.com
Question : How do I check if a string contains another string in Swift

Answered by : mobile-star

let string = "hello Swift"
if string.contains("Swift") { print("exists")
}

Source : | Last Update : Thu, 06 Feb 20

Answers related to swift check if string contains string

Code Explorer Popular Question For Swift