var spawn = SKAction.runBlock({() in self.spawnPipes()})
with var spawn = SKAction.runBlock({self.spawnPipes()})
or even var spawn = SKAction.runBlock() {self.spawnPipes()}
or var spawn = SKAction.runBlock {self.spawnPipes()}
EDIT: formatting for code
As for the app - great idea and nice implementation, but for someone who understands what to do right from the beginning, "hints"-popups are really annoying. Maybe add a button "I know what I'm doing" or something like that to allow to skip them?