Skip to content

Commit

Permalink
Update SettingsViewAppleWatchSettingsViewModel.swift
Browse files Browse the repository at this point in the history
  • Loading branch information
paulplant committed Oct 2, 2023
1 parent 44cf1ea commit 3b3beb6
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -101,12 +101,17 @@ class SettingsViewAppleWatchSettingsViewModel: SettingsViewModelProtocol {
// by clicking row, show what it means to be restricted, according to Apple doc
return UITableViewCell.AccessoryType.disclosureIndicator

case .authorized:
return UITableViewCell.AccessoryType.none

#if swift(>=5.9)
case .writeOnly:
// by clicking row, show that the permission is restricted to Add Events Only instead of Full Access
return UITableViewCell.AccessoryType.disclosureIndicator

case .authorized, .fullAccess:
case .fullAccess:
return UITableViewCell.AccessoryType.none
#endif

@unknown default:
trace("in SettingsViewAppleWatchSettingsViewModel, unknown case returned when authorizing EKEventStore ", log: self.log, category: ConstantsLog.categoryRootView, type: .error)
Expand Down

0 comments on commit 3b3beb6

Please sign in to comment.