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

results in completion handler of performQuery should be typed #210

Open
cychiuae opened this issue Jun 12, 2018 · 0 comments
Open

results in completion handler of performQuery should be typed #210

cychiuae opened this issue Jun 12, 2018 · 0 comments

Comments

@cychiuae
Copy link
Contributor

Currently the type of results in completion handler of performQuery is NSArray *. It makes us developers need to force cast the results to [SKYRecord] in Swift every time
i.e.

for todo in results as! [SKYRecord] {
    print ("Got a todo \(todo["title"])")
}

which is pretty ignoring.

We can easily fix that by change the type of results to NSArray<SKYRecord *> *.

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