Looping with a delay in Swift

Coming from JavaScript and Python, creating a delay in Swift was odd. Here’s how to get your delays working.