title: Delay Actions in Swift
body: <p>I want to make an Activity Indicator start animating and then stop after one second.</p>
  
  <p>So does anyone know how I could do that?</p>
  
  <pre><code>class stuff {
  @IBOutlet weak var indicator: UIActivityIndicatorView!
  
     func iGotTriggeredBySomething {
        indicator.startAimating()
        //delay?
        indicator.stopAnimating()
     }
  }
  </code></pre>
  
  <p>Thanks for answering.</p>