Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SWIFT

settimeout in swift

DispatchQueue.main.asyncAfter(deadline: .now() + 2.0) { // Change `2.0` to the desired number of seconds.
   // Code you want to be delayed
}
 
PREVIOUS NEXT
Tagged: #settimeout #swift
ADD COMMENT
Topic
Name
8+1 =