ReactiveX way to request permissions on iOS
RxPermission is available through CocoaPods.
pod 'RxSwift-Permission'
Permission.contacts.rx
.status
.subscribeNext { status in
print("Status: \(status)")
}
.addDisposableTo(disposeBag)
Remeber add NSContactsUsageDescription to your Info.plist.
For more info about permissions and statuses, please visit Permission's README.
To run the example project, clone the repo, and run pod install
from the Example directory first.
RxPermission is available under the MIT license. See the LICENSE file for more info.