Request and check permission to Camera, Location, Contacts, Microphone, Photos, Healthkit, File access easily. Supports all platforms.
Installing using Cocoapods
pod 'Permissions'
Add Permissions to your ViewController
import Permissions
YourViewController : UIViewController, PmPermissionDelegate {
...
weak var delegate: PmPermissionDelegate?
override func viewDidLoad() {
let permissions: Permissions(device : .camera, shouldRequest : true)
permissions.delegate = self
...
Add Delegates
func didCheckPermissionStatus(_ response: PermissionResponse)
func didFailToGetPermissionStatus(_ response: PermissionResponse)
- Contacts Permission
- Location Permission
- Camera Permission
- Micophone Permission
- Photos Permission
- Healthkit Permission
- Update Readme