I\'m making a game using SpriteKit. I have 3 viewControllers: selecting level vc, game vc, and win vc. After the game is over, I want to show the win vc, then if I press OK
Swift 4.0
let presentingViewController = self.presentingViewController presentingViewController?.presentingViewController?.presentingViewController?.dismiss(animated: false, completion: nil)