Search
 
SCRIPT & CODE EXAMPLE
 

SWIFT

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

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

PREVIOUS NEXT
Code Example
Swift ::  
::  
::  
::  
Swift ::  
::  
Swift ::  
::  
::  
::  
Swift ::  
::  
::  
::  
Swift :: swiftui foreach 
:: swift qrcode scanner 
::  
::  
::  
::  
Javascript ::  
::  
::  
::  
::  
::  
Javascript ::  
::  
::  
:: regex password uppercase lowercase number special character 
ADD CONTENT
Topic
Content
Source link
Name
8+8 =