title: Change the value of a variable after a set amount of time in Swift
body: <p>I am making a game similar to pitfall in Swift and I am trying to make a boolean that shows whether the player is jumping or not. I want the boolean to become false after 3 seconds so that the player moves down again. I have tried using a delay function but it didn't work.
  Thanks in advance.</p>