I know that there are several ways of delaying an action in Objective-C like:
performSelector:withObject:afterDelay:
or using NSTimer
Xcode 11.3.1 (at least, and also other versions of Xcode) provides a code snippet to do this where you just have to enter the delay value and the code you wish to run after the delay.
+
button at the top right of Xcode.after