Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SWIFT

delay code execution swift 4

var dispatchAfter = DispatchTimeInterval.seconds(1)

DispatchQueue.main.asyncAfter(deadline: DispatchTime.now() + dispatchAfter, execute: {
    // Do your thing
})
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #delay #code #execution #swift
ADD COMMENT
Topic
Name
7+3 =