PermissionScope 原项目 Objective-C 复刻版。使用 Objective-C 重写了一遍 PermissionScope 库,保留了原有的接口与注释。依然可以使用原有项目的示例 Demo 调用复刻版。
在复刻过程中同时也修复了一些已知问题。
PermissionScope-ObjC.xcodeproj
PermissionScope gives you space to explain your reasons for requesting permissions and allows users to tackle the system dialogs at their own pace. It presents a straightforward permissions design and is flexible enough to fit in to most UIKit-based apps.
Best of all, PermissionScope detects when your app's permissions have been denied by a user and gives them an easy prompt to go into the system settings page to modify these permissions.
Supported permissions:
- Notifications
- Location (WhileInUse, Always)
- Contacts
- Events
- Microphone
- Camera
- Photos
- Reminders
- Bluetooth
- Motion