From 7d231a135c2d61d62b9fef8f0b14cc2d500fc626 Mon Sep 17 00:00:00 2001 From: Alexander von Below Date: Wed, 5 Oct 2022 11:23:54 +0200 Subject: [PATCH] Fix: Update the view correctly after clearing all regions --- GeofenceTester/SettingsViewController.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/GeofenceTester/SettingsViewController.swift b/GeofenceTester/SettingsViewController.swift index a36f8e2..49c0463 100644 --- a/GeofenceTester/SettingsViewController.swift +++ b/GeofenceTester/SettingsViewController.swift @@ -85,9 +85,9 @@ class SettingsViewController: UIViewController, LocationUser { ) { [self]_ in for region in self.locationManager.monitoredRegions { self.locationManager.stopMonitoring(for: region) - NotificationCenter.default.post(Notification( - name: RegionsListViewController.UpdateNotificationName)) } + NotificationCenter.default.post(Notification( + name: RegionsListViewController.UpdateNotificationName)) } }