项目作者: saqibomer

项目描述 :
Permissions framework for iOS, macOS, watchOS and tvOS
高级语言: Swift
项目地址: git://github.com/saqibomer/Permissions.git
创建时间: 2019-02-12T07:26:33Z
项目社区:https://github.com/saqibomer/Permissions

开源协议:

下载


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

  1. pod 'Permissions'

Add Permissions to your ViewController

  1. import Permissions
  2. YourViewController : UIViewController, PmPermissionDelegate {
  3. ...
  4. weak var delegate: PmPermissionDelegate?
  5. override func viewDidLoad() {
  6. let permissions: Permissions(device : .camera, shouldRequest : true)
  7. permissions.delegate = self
  8. ...

Add Delegates

  1. func didCheckPermissionStatus(_ response: PermissionResponse)
  2. func didFailToGetPermissionStatus(_ response: PermissionResponse)

TO DO

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