How to How to add a delay to code in Swift In this tutorial you will learn how to add a delay to your code. To add a delay to your code we need to use GCD. GCD has a built in method called asyncAfter, which will allow us to run code after a given amount of time. The code is