I am trying to write this code in Swift 3, it is for multiplayer -
this code in old version of swift 2. trying write in swift 3 having problem. multiplayer game. having problem "let userinfo ". error "extra argument 'userinfo' "in call import uikit import multipeerconnectivity class mpchander: nsobject, mcsessiondelegate { var peerid:mcpeerid! var session:mcsession! var browser:mcbrowserviewcontroller! var advertiser:mcadvertiserassistant? = nil func setuppeerwithdisplayname (displayname:string){ peerid = mcpeerid(displayname: displayname) } func setupsession(){ session = mcsession(peer: peerid) session.delegate = self } func setupbrowser(){ browser = mcbrowserviewcontroller(servicetype: "my-game", session: session) } func advertiseself(advertise:bool){ if advertise{ advertiser = mcadvertiserassistant(servicetype: "my-game", discoveryinfo: nil, session: session) advertiser!.start() ...