Description
While creating a new project with TCA using Xcode 26 beta 7, Swift 6 mode, and SWIFT_DEFAULT_ACTOR_ISOLATION=MainActor.
I encounter a compiler error when applying the @Reducer macro to an enum.
I’m not sure whether this is a TCA issue or a compiler/Xcode, but the macro appears to fail in this configuration.
Checklist
Expected behavior
No response
Actual behavior
No response
Reproducing project
@Reducer
struct Feature {
@ObservableState
struct State: Equatable { }
}
@Reducer
enum Path {
case child(Feature)
}
extension Path.State: Equatable { }
The Composable Architecture version information
1.22.2
Destination operating system
iOS 26
Xcode version information
Xcode 26 beta 7
Swift Compiler version information
swift-driver version: 1.127.14.1 Apple Swift version 6.2 (swiftlang-6.2.0.19.9 clang-1700.3.19.1)
Target: arm64-apple-macosx26.0