Skip to content
This repository has been archived by the owner on Mar 6, 2018. It is now read-only.

Commit

Permalink
Merge pull request #13 from AndrewSB/patch-1
Browse files Browse the repository at this point in the history
update for Reactive moving from RxSwift -> RxCocoa
  • Loading branch information
sunshinejr authored Sep 30, 2016
2 parents 7db951b + 2a0f0f4 commit 78f6408
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Source/RxPermission.swift
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,15 @@

import Permission
import RxSwift
import RxCocoa

extension RxSwift.Reactive where Base: Permission {
extension RxCocoa.Reactive where Base: Permission {

/// Reactive wrapper for `Permission` instance.
public var permission: Observable<PermissionStatus> {
return Observable.create { (observer) in
self.base.request { observer.onNext($0) }
return AnonymousDisposable { observer.onCompleted() }
return Disposables.create { observer.onCompleted() }
}
}
}

0 comments on commit 78f6408

Please sign in to comment.