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

Commit

Permalink
update for Reactive moving from RxSwift -> RxCocoa
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewSB committed Sep 30, 2016
1 parent b15638e commit 2a0f0f4
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 2a0f0f4

Please sign in to comment.