Latest 1.0.0
Homepage https://github.com/roshanman/RxPermission
License MIT
Platforms ios 9.0
Dependencies Permission, RxSwift, RxCocoa
Authors

RxPermission

CocoaPods
Swift 3
License
Platform

ReactiveX way to request permissions on iOS

Installation

RxPermission is available through CocoaPods.

pod 'RxSwift-Permission'

Notice

:warning: You must read this before use.

Sample code

Permission.contacts.rx
    .status
    .subscribeNext { status in
        print("Status: (status)")
    }
    .addDisposableTo(disposeBag)

Remember add NSContactsUsageDescription to your Info.plist.

Available permissions:

See PermissionType.swift

Available statuses:

See PermissionType.swift

For more info about permissions and statuses, please visit Permission’s README.

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

License

RxPermission is available under the MIT license. See the LICENSE file for more info.

Latest podspec

{
    "name": "RxSwift-Permission",
    "version": "1.0.0",
    "summary": "ReactiveX way to request permissions on iOS.",
    "description": "RxSwift binding for [Permission](https://github.com/delba/Permission) API that helps you with Permissions in iOS.",
    "homepage": "https://github.com/roshanman/RxPermission",
    "license": "MIT",
    "authors": {
        "roshanman": "[email protected]"
    },
    "source": {
        "git": "https://github.com/roshanman/RxPermission.git",
        "tag": "1.0.0"
    },
    "platforms": {
        "ios": "9.0"
    },
    "source_files": "Source/*.swift",
    "dependencies": {
        "Permission": [],
        "RxSwift": [],
        "RxCocoa": []
    },
    "pushed_with_swift_version": "3.0"
}

Pin It on Pinterest

Share This