I am trying to create a leaderboard in swift this is my authenticate function:
localPlayer.authenticateHandler = { (ViewController2, error) -> void in
if ((ViewController2) != nil) {
self.presentViewController(ViewController2, animated: true, completion: nil)
The error is use of undeclared type 'void'.