Spritekit Swift particle SKEmitterNode add remove
so this is nice for create a particle, but whats the right way to remove it , after the duration, sparkEmmiter.particleLifetime do not remove it automatically let sparkEmmiter = SKEmitterNode(fileNamed: "MyParticle.sks") sparkEmmiter.position = CGPointMake(self.frame.size.width/2, self.frame.size.height/2 - 200) sparkEmmiter.name = "sparkEmmitter" sparkEmmiter.zPosition = 1 sparkEmmiter.targetNode = self sparkEmmiter.particleLifetime = 1 self.addChild(sparkEmmiter) this solutions produce simulator crash var re = SKAction.waitForDuration(1) var remove = SKAction.removeFromParent() var seq = SKAction.sequence([re , remove]) sparkEmmiter.runAction(seq)
Check UITextField focused on XCUITest
Autocompletion is not working in Xcode 7.2.1
Keep track of time (when app is closed or in background)
How to use your own documentation for functions override with apple's quickdoc in xcode?
PouchDB not detecting sqlite plugin using cordova (iOS)
App Testing iOS Xcode Swift
How can I run Score Label when I touch the object?
Swift: value of type (_)->has no member 'Generator'
Random Color Generation of my Choice
Xcode 7.3 constantly building in idle
Xcode error : Thread 1: signal SIGABRT in Swift (game application)
Xcode git not showing xcassets to commit
How to enable horizontal scrolling of text in NStextView window for OSX application?
How to prevent the Apple Watch from going to sleep?
xcode 7.3 can not find glances in my watch
Plotting multiple scatter lines in different rate?