Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Documentation appears out of date #20

Open
MDBrittingham opened this issue Aug 19, 2022 · 1 comment
Open

Documentation appears out of date #20

MDBrittingham opened this issue Aug 19, 2022 · 1 comment

Comments

@MDBrittingham
Copy link

Following the example usage, GKAuthenticationView has three closures: state, failed, and authenticated. However, putting this example code into a SwiftUI view results in an error "Extra trailing closure passed in call" on the "failed:" line. Using

GKAuthenticationView(failed: { error in ...}, authenticated: { player in ...}

appears to work just fine.

@sans-connaissance
Copy link

I'm seeing that as well. Here's a super basic implementation that builds

       GKAuthenticationView { fail in
                print("failed by \(fail)")
                
            } authenticated: { player in
                print("Authenticated")
            }

The included example in the package looks great though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants