Fix spelling and reactivate access to preferences panel

Related to Pull Request:
https://github.com/ReactiveX/RxSwift/pull/623/files
This commit is contained in:
Carlos García 2016-05-21 17:05:14 +02:00
parent 4b3056b81f
commit 5269932678
3 changed files with 5 additions and 6 deletions

View File

@ -48,10 +48,10 @@ class GeolocationViewController: ViewController {
let geolocationService = GeolocationService.instance
geolocationService.autorized
geolocationService.authorized
.drive(noGeolocationView.rx_driveAuthorization)
.addDisposableTo(disposeBag)
/*
geolocationService.location
.drive(label.rx_driveCoordinates)
.addDisposableTo(disposeBag)
@ -67,7 +67,6 @@ class GeolocationViewController: ViewController {
self?.openAppPreferences()
}
.addDisposableTo(disposeBag)
*/
}
private func openAppPreferences() {

View File

@ -16,7 +16,7 @@ import CoreLocation
class GeolocationService {
static let instance = GeolocationService()
private (set) var autorized: Driver<Bool>
private (set) var authorized: Driver<Bool>
private (set) var location: Driver<CLLocationCoordinate2D>
private let locationManager = CLLocationManager()
@ -26,7 +26,7 @@ class GeolocationService {
locationManager.distanceFilter = kCLDistanceFilterNone
locationManager.desiredAccuracy = kCLLocationAccuracyBestForNavigation
autorized = Observable.deferred { [weak locationManager] in
authorized = Observable.deferred { [weak locationManager] in
let status = CLLocationManager.authorizationStatus()
guard let locationManager = locationManager else {
return Observable.just(status)

View File

@ -23,7 +23,7 @@ public class RootViewController : UITableViewController {
DefaultWireframe.sharedInstance
MainScheduler.instance
let geoService = GeolocationService.instance
geoService.autorized.driveNext { _ in
geoService.authorized.driveNext { _ in
}.dispose()
geoService.location.driveNext { _ in