Game centre leaderboard swift

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'.

Swift is case sensitive, so you need to use "Void" rather than "void".

Game centre leaderboard swift
 
 
Q