berikv / GameCenterUI

The easiest way to integrate GameCenter with SwiftUI
MIT License
2 stars 0 forks source link

Authentication issue on iOS 14 #1

Open nickseidel opened 2 years ago

nickseidel commented 2 years ago

The package works fine on iOS 15. But when trying to authenticate on iOS 14, the view cannot be closed and there is just a white blank. See video below:

Code: ContentView() .enableGameCenter()

https://user-images.githubusercontent.com/20157293/153199958-76157f97-e6b9-415e-860b-6afdb112e506.mp4

berikv commented 2 years ago

Thanks for the report, I'll check this out!

berikv commented 2 years ago

I've tested on iOS simulator iPhone 6 iOS 14.5 and could not reproduce this issue. Do you have any more details? Maybe you can set a breakpoint in GameKitAuthenticationController.init inside the changeHandler. That changeHandler is called by GameKit when the authentication state changes. If anything could cause this issue, it'd be in that change handler.