title: Swift: how to disable user interaction while touch action is being carried out?
body: <p>I'm working with sprite kit and if the user touches the screen, the actions within   </p>
  
  <pre><code>override func touchesBegan(touches: NSSet, withEvent event: UIEvent) {
      /* Called when a touch begins */
  
      for touch: AnyObject in touches {
      }
  }
  </code></pre>
  
  <p>are carried out. While they're  being carried out, however, the user can still tap the screen and the app tries to run the actions again. </p>
  
  <p>How do I disable touch interaction/the actions within the touch func while the actions are running?</p>