diff --git a/BeaconSync.podspec b/BeaconSync.podspec
index ca957c8..b6b6115 100644
--- a/BeaconSync.podspec
+++ b/BeaconSync.podspec
@@ -8,7 +8,7 @@
Pod::Spec.new do |s|
s.name = 'BeaconSync'
- s.version = '0.1.1'
+ s.version = '0.1.2'
s.summary = 'A short description of BeaconSync.'
# This description is used to generate tags and improve search results.
diff --git a/Example/Pods/Pods.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/Example/Pods/Pods.xcodeproj/project.xcworkspace/contents.xcworkspacedata
new file mode 100644
index 0000000..919434a
--- /dev/null
+++ b/Example/Pods/Pods.xcodeproj/project.xcworkspace/contents.xcworkspacedata
@@ -0,0 +1,7 @@
+
+
+
+
+
diff --git a/Example/Pods/Pods.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/Example/Pods/Pods.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
new file mode 100644
index 0000000..18d9810
--- /dev/null
+++ b/Example/Pods/Pods.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
@@ -0,0 +1,8 @@
+
+
+
+
+ IDEDidComputeMac32BitWarning
+
+
+
diff --git a/SourceCode/BeaconManager.swift b/SourceCode/BeaconManager.swift
index a2a4cc1..8698019 100644
--- a/SourceCode/BeaconManager.swift
+++ b/SourceCode/BeaconManager.swift
@@ -22,6 +22,11 @@ class BeaconManager: NSObject, CLLocationManagerDelegate {
locationManager.stopUpdatingLocation()
}
+ //MARK: - Stop Beacon scanning
+ func stopUpdateLocation() {
+ self.locationManager.stopUpdatingLocation()
+ }
+
//MARK: - Tells the delegate when the app creates the location manager and when the authorization status changes
func locationManagerDidChangeAuthorization(_ manager: CLLocationManager) {
if manager.authorizationStatus == .authorizedAlways || manager.authorizationStatus == .authorizedWhenInUse {
diff --git a/SourceCode/BeaconSync.swift b/SourceCode/BeaconSync.swift
index eccb1f4..af07a70 100644
--- a/SourceCode/BeaconSync.swift
+++ b/SourceCode/BeaconSync.swift
@@ -18,6 +18,10 @@ public struct BeaconSync {
.store(in: &cancellables)
}
+ public func stopSync() {
+ beaconManager.stopUpdateLocation()
+ }
+
public func publishBeacons() -> AnyPublisher<[CLBeacon]?, Never> {
return beaconManager.$beacons
.eraseToAnyPublisher()