Skip to content

Instantly share code, notes, and snippets.

@Fedenieto90
Created February 22, 2019 14:16
Show Gist options
  • Save Fedenieto90/e490adcb6df43feaefcfe9e57f1703f8 to your computer and use it in GitHub Desktop.
Save Fedenieto90/e490adcb6df43feaefcfe9e57f1703f8 to your computer and use it in GitHub Desktop.
func changeNodeColor(nodeTag : String) {
svgView.node.nodeBy(tag: nodeId)?.onTouchPressed({ (touch) in
//Add an action to execute when specific node was touched
//Change node color
self.changeNodeColor(nodeTag: nodeId)
})
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment