Skip to content

Commit

Permalink
Expose methods explicitly to objective C
Browse files Browse the repository at this point in the history
  • Loading branch information
JoelBCarter committed Nov 22, 2024
1 parent bf0b8d4 commit 0df5cee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/XyoClient/Witness/Location/LocationService.swift
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,15 @@ public class LocationService: NSObject, CLLocationManagerDelegate, LocationServi
}

// CLLocationManagerDelegate methods
public func locationManager(
@objc public func locationManager(
_ manager: CLLocationManager, didUpdateLocations locations: [CLLocation]
) {
if let location = locations.last {
locationCompletion?(.success(location))
}
}

public func locationManager(_ manager: CLLocationManager, didFailWithError error: Error) {
@objc public func locationManager(_ manager: CLLocationManager, didFailWithError error: Error) {
locationCompletion?(.failure(error))
}
}

0 comments on commit 0df5cee

Please sign in to comment.