Skip to content

Permissions framework for iOS, macOS, watchOS and tvOS

Notifications You must be signed in to change notification settings

saqibomer/Permissions

Repository files navigation

MIT Licence Generic badge Generic badge Generic badge Generic badge Generic badge

Permissions

Request and check permission to Camera, Location, Contacts, Microphone, Photos, Healthkit, File access easily. Supports all platforms.

Platform

Installation

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)

TO DO

  • Contacts Permission
  • Location Permission
  • Camera Permission
  • Micophone Permission
  • Photos Permission
  • Healthkit Permission
  • Update Readme

About

Permissions framework for iOS, macOS, watchOS and tvOS

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published