Skip to content
Easy request permissions on iOS
Swift Ruby Objective-C
Branch: master
Clone or download
Latest commit a50b05a Aug 10, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
KPermission.xcodeproj Update Aug 10, 2019
KPermission Update Aug 10, 2019
KPermission.podspec
LICENSE Create LICENSE Aug 9, 2019
README.md Update README.md Aug 10, 2019

README.md

KPermission

MIT Licance MIT Licance MIT Licance MIT Licance

Advantages

  • Simply use.
  • Easy permission request.

Requirements

  • Xcode 9.0 +
  • iOS 11.0 or greater

Installation

CocoaPods

  1. Install CocoaPods
  2. Add this repo to your Podfile
platform :ios, '11.0'

target 'ProjectName' do
  use_frameworks!
  pod 'KPermission'
end
  1. Run pod install
  2. Open up the new .xcworkspace that CocoaPods generated
  3. Whenever you want to use the library: import KPermission

Manually

  1. Simply download the KPermission source files and import them into your project.

Usage

KPermission.shared.view.show(view: self.view, types: [.camera, .photoLibrary], animation: .scale)

Permission types:

  • Camera
  • Photo Library
  • Notification
  • Location
  • Microphone
  • Calander
  • Contacts
  • Reminder
  • Motion
  • Media Library
  • Speech

License

Usage is provided under the MIT License. See LICENSE for the full details.

You can’t perform that action at this time.