I\'m working with sprite kit and if the user touches the screen, the actions within
override func touchesBegan(touches: NSSet, withEvent event: UIEvent) {
You can use boolean class variable to stop interaction while method is performing, and after that you can just change value of boolean, at the end of the method.
Use UIApplication.shared.beginIgnoringInteractionEvents()
at the end of the first method, then change value of boolean and then use another method with start line UIApplication.shared.endIgnoringInteractionEvents()
.