I need to make a segue from a GameScene to a UIViewController but i keep getting Use of unresolved identifier "push" although I did give it that identifier
In the GameSceneViewController I added
scene.viewController = self
and in my GameScene I added
var viewController: UIViewController?
and
func segue(){
    self.viewController.performSegueWithIdentifier(push, sender: viewController)
}
				
                        
Segue identifiers are
Stringobjects, so you should callperformSegueWithIdentifierwith"push"instead of referencing it as a variable.This code should work: