From 71243de04a75b2a7070cf782382a517150b88134 Mon Sep 17 00:00:00 2001 From: Paul Plant <37302780+paulplant@users.noreply.github.com> Date: Mon, 14 Oct 2024 22:56:07 +0200 Subject: [PATCH] revert CNContactStore.authorizationStatus changes for Xcode15 building --- .../SettingsViewContactImageSettingsViewModel.swift | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/xdrip/View Controllers/SettingsNavigationController/SettingsViewController/SettingsViewModels/SettingsViewContactImageSettingsViewModel.swift b/xdrip/View Controllers/SettingsNavigationController/SettingsViewController/SettingsViewModels/SettingsViewContactImageSettingsViewModel.swift index 5d899487e..b69a23573 100644 --- a/xdrip/View Controllers/SettingsNavigationController/SettingsViewController/SettingsViewModels/SettingsViewContactImageSettingsViewModel.swift +++ b/xdrip/View Controllers/SettingsNavigationController/SettingsViewController/SettingsViewModels/SettingsViewContactImageSettingsViewModel.swift @@ -78,7 +78,7 @@ class SettingsViewContactImageSettingsViewModel: SettingsViewModelProtocol { case .notDetermined: return .none - case .restricted, .limited: + case .restricted: // by clicking row, show what it means to be restricted, according to Apple doc return .disclosureIndicator @@ -153,10 +153,6 @@ class SettingsViewContactImageSettingsViewModel: SettingsViewModelProtocol { trace("in SettingsViewContactImageSettingsViewModel, CNContactStore access restricted, according to apple doc 'possibly due to active restrictions such as parental controls being in place'", log: self.log, category: ConstantsLog.categoryRootView, type: .error) UserDefaults.standard.enableContactImage = false - case .limited: - trace("in SettingsViewContactImageSettingsViewModel, CNContactStore access limited, ask the user to give full access", log: self.log, category: ConstantsLog.categoryRootView, type: .error) - UserDefaults.standard.enableContactImage = false - case .denied: trace("in SettingsViewContactImageSettingsViewModel, CNContactStore access denied by user", log: self.log, category: ConstantsLog.categoryRootView, type: .error) UserDefaults.standard.enableContactImage = false @@ -229,10 +225,6 @@ class SettingsViewContactImageSettingsViewModel: SettingsViewModelProtocol { // by clicking row, show what it means to be restricted, according to Apple doc return SettingsSelectedRowAction.showInfoText(title: Texts_Common.warning, message: Texts_SettingsView.infoContactsAccessRestricted) - case .limited: - // by clicking row, show what it means to be limited, according to Apple doc - return SettingsSelectedRowAction.showInfoText(title: Texts_Common.warning, message: Texts_SettingsView.infoContactsAccessLimited) - @unknown default: trace("in SettingsViewContactImageSettingsViewModel, unknown case returned when authorizing CNContactStore ", log: self.log, category: ConstantsLog.categoryRootView, type: .error)