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)