From d3e856e5d4245a3f4fb2ff5bebd47a65e7109e16 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Santos?= Date: Fri, 24 Apr 2026 18:39:18 +0100 Subject: [PATCH] Fix xcodebuild issues --- Sources/ComposableArchitecture/Internal/Deprecations.swift | 4 ++++ Sources/ComposableArchitecture/Internal/Logger.swift | 1 + .../Observation/Alert+Observation.swift | 4 ++++ 3 files changed, 9 insertions(+) diff --git a/Sources/ComposableArchitecture/Internal/Deprecations.swift b/Sources/ComposableArchitecture/Internal/Deprecations.swift index 6d4cd62f3911..47c69dfb11b4 100644 --- a/Sources/ComposableArchitecture/Internal/Deprecations.swift +++ b/Sources/ComposableArchitecture/Internal/Deprecations.swift @@ -2079,6 +2079,8 @@ extension View { if let action { store.send(.presented(fromDestinationAction(action)), animation: animation) } + @unknown default: + break } } label: { Text(button.label) @@ -2132,6 +2134,8 @@ extension View { if let action { store.send(.presented(fromDestinationAction(action)), animation: animation) } + @unknown default: + break } } label: { Text(button.label) diff --git a/Sources/ComposableArchitecture/Internal/Logger.swift b/Sources/ComposableArchitecture/Internal/Logger.swift index f02eaef0ce02..274e71521bca 100644 --- a/Sources/ComposableArchitecture/Internal/Logger.swift +++ b/Sources/ComposableArchitecture/Internal/Logger.swift @@ -1,4 +1,5 @@ import OSLog +import Combine @_spi(Logging) @preconcurrency @MainActor diff --git a/Sources/ComposableArchitecture/Observation/Alert+Observation.swift b/Sources/ComposableArchitecture/Observation/Alert+Observation.swift index 33faf2d512a6..6b990c6e7ae6 100644 --- a/Sources/ComposableArchitecture/Observation/Alert+Observation.swift +++ b/Sources/ComposableArchitecture/Observation/Alert+Observation.swift @@ -22,6 +22,8 @@ extension View { if let action { store?.send(action, animation: animation) } + @unknown default: + break } } label: { Text(button.label) @@ -59,6 +61,8 @@ extension View { if let action { store?.send(action, animation: animation) } + @unknown default: + break } } label: { Text(button.label)