From 33bee371f176fb8bcbd1cd1134619e73e6426577 Mon Sep 17 00:00:00 2001 From: Gronod Date: Thu, 1 Oct 2026 12:45:11 +0100 Subject: [PATCH] fix: Replace Swift 5.9 switch expression for Xcode 14 compatibility --- Sources/Intelligence/AlertNotificationDispatcher.swift | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Sources/Intelligence/AlertNotificationDispatcher.swift b/Sources/Intelligence/AlertNotificationDispatcher.swift index 8ba5992..6b067c9 100644 --- a/Sources/Intelligence/AlertNotificationDispatcher.swift +++ b/Sources/Intelligence/AlertNotificationDispatcher.swift @@ -118,11 +118,12 @@ public final class UNAlertNotificationDispatcher: NSObject, AlertNotificationDis didReceive response: UNNotificationResponse, withCompletionHandler completionHandler: @escaping () -> Void ) { - let targetTab: String? = switch response.actionIdentifier { + let targetTab: String? + switch response.actionIdentifier { case AlertNotificationAction.viewProcessesIdentifier: - "Processes" + targetTab = "Processes" default: - nil + targetTab = nil } Task { @MainActor in AppNavigationBus.shared.request(tab: targetTab) -- 2.39.5