I was spacing out while starting a new project to port one of my Obj-C/SpriteKit apps over to Swift and started to add a touch for loop within touchesMoved. My mistake, but the weird issue is that I get "SourceKitService Terminated" and Xcode completely bugs out.
override func touchesMoved(touches: NSSet!, withEvent event: UIEvent!) {
for touch: AnyObject in touches {
}
}
Specifically, this happens the moment I begin to type "touches" in the for loop. Entering "for touch: AnyObject in" everything is still fine. As soon as I continue to type "touches"... SourceKitService Terminated.
I get that this should be an error, but why is Xcode completely freaking out because of this?