Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SWIFT

How do I check if a string contains another string in Swift

let string = "hello Swift"
if string.contains("Swift") {
    print("exists")
}
 
PREVIOUS NEXT
Tagged: #How #I #check #string #string #Swift
ADD COMMENT
Topic
Name
3+5 =