Skip to content

Commit

Permalink
Merge pull request #46 from envoy/add-available-clauses
Browse files Browse the repository at this point in the history
Add back @available clauses for iOS 11 APIs
  • Loading branch information
newoo authored May 19, 2021
2 parents 2219e31 + 2efc307 commit 9a50b4c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions Sources/CLLocationManagerEvents+Rx.swift
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ extension Reactive where Base: CLLocationManager {
.unwrap()
}
/// Reactive Observable for `showsBackgroundLocationIndicator`
@available(iOS 11.0, *)
public var showsBackgroundLocationIndicator: Observable<Bool> {
return self.observe(Bool.self, .showsBackgroundLocationIndicator)
.map { $0 }
Expand Down
1 change: 1 addition & 0 deletions Sources/RxKeyPaths.swift
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ extension String {
static let desiredAccuracy = #keyPath(CLLocationManager.desiredAccuracy)
static let pausesLocationUpdatesAutomatically = #keyPath(CLLocationManager.pausesLocationUpdatesAutomatically)
static let allowsBackgroundLocationUpdates = #keyPath(CLLocationManager.allowsBackgroundLocationUpdates)
@available(iOS 11.0, *)
static let showsBackgroundLocationIndicator = #keyPath(CLLocationManager.showsBackgroundLocationIndicator)
static let location = #keyPath(CLLocationManager.location)
static let headingFilter = #keyPath(CLLocationManager.headingFilter)
Expand Down

0 comments on commit 9a50b4c

Please sign in to comment.