Xcode – How to show a specific UIViewController when GKGameCenterViewController is dismissed?
I am presenting a GKGameCenterViewController in an SKScene that inherits from the following protocol. protocol GameCenter {} extension GameCenter where Self: SKScene { func goToLeaderboard() { let vc = GKGameCenterViewController() vc.gameCenterDelegate = GameViewController() vc.viewState = .leaderboards vc.leaderboardIdentifier = "leaderboard" view?.window?.rootViewController?.present(vc,…