Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/kenanatmaca/kpermission
- Owner: KenanAtmaca
- License: mit
- Created: 2019-08-09T09:08:41.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-08-10T10:50:19.000Z (over 5 years ago)
- Last Synced: 2024-11-11T01:04:28.835Z (about 2 months ago)
- Topics: camera, dialog, ios, location, medialibrary, motion, notification, permissions, photolibrary-ios, reminder, request, speech, swift, ui
- Language: Swift
- Homepage:
- Size: 72.3 KB
- Stars: 14
- Watchers: 3
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# KPermission
## 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.