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
Answered by : mobile-star
let string = "hello Swift"
if string.contains("Swift") { print("exists")
}
Source : | Last Update : Thu, 06 Feb 20