From 0df5cee26fd3263c6d85cbfe833566d607e1c1b6 Mon Sep 17 00:00:00 2001 From: Joel Carter Date: Fri, 22 Nov 2024 13:42:57 -0600 Subject: [PATCH] Expose methods explicitly to objective C --- Sources/XyoClient/Witness/Location/LocationService.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Sources/XyoClient/Witness/Location/LocationService.swift b/Sources/XyoClient/Witness/Location/LocationService.swift index 50a406b..75931b1 100644 --- a/Sources/XyoClient/Witness/Location/LocationService.swift +++ b/Sources/XyoClient/Witness/Location/LocationService.swift @@ -23,7 +23,7 @@ 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 { @@ -31,7 +31,7 @@ public class LocationService: NSObject, CLLocationManagerDelegate, LocationServi } } - public func locationManager(_ manager: CLLocationManager, didFailWithError error: Error) { + @objc public func locationManager(_ manager: CLLocationManager, didFailWithError error: Error) { locationCompletion?(.failure(error)) } }