Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/kenanatmaca/kpermission

Easy request permissions on iOS
https://github.com/kenanatmaca/kpermission

camera dialog ios location medialibrary motion notification permissions photolibrary-ios reminder request speech swift ui

Last synced: about 2 months ago
JSON representation

Easy request permissions on iOS

Awesome Lists containing this project

README

        

# KPermission


MIT Licance
MIT Licance
MIT Licance
MIT Licance

## Advantages
- [X] Simply use.
- [X] Easy permission request.

## Requirements

- Xcode 9.0 +
- iOS 11.0 or greater

## Installation

### CocoaPods

1. Install [CocoaPods](http://cocoapods.org)
2. Add this repo to your `Podfile`

```ruby
platform :ios, '11.0'

target 'ProjectName' do
use_frameworks!
pod 'KPermission'
end
```

3. Run `pod install`
4. Open up the new `.xcworkspace` that CocoaPods generated
5. Whenever you want to use the library: `import KPermission`

### Manually

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

## Usage



```Swift
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](http://http//opensource.org/licenses/mit-license.php). See LICENSE for the full details.