sparrowcode / PermissionsKit

Universal API for request permission and get its statuses.
https://x.com/sparrowcode_ios
MIT License
5.64k stars 462 forks source link

Added CloudKitPermission #289

Closed myawesomehub closed 2 years ago

myawesomehub commented 2 years ago

Goal

Added a way to check the CloudKit login status in the device. Using this solution, we can check the current user's CloudKit login status in the device.

ivanvorobei commented 2 years ago

Thanks! how about lock thread and make request for status? Because if we do request with init, we can catch wrong result.

myawesomehub commented 2 years ago

Hey @ivanvorobei For requesting the iCloud log-in, I think I will have to jump the user to the app settings. Right?

ivanvorobei commented 2 years ago

No, I mean can we get status in main thread and lock interaction with app? because if user init permission and get status immediately he catch wrong result