From 2be6c841d825e24e9c5c6fe67a8ad16e25d41cb3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mari=C3=A1n=20Trpko=C5=A1?= Date: Mon, 30 Jun 2025 00:46:42 +0200 Subject: [PATCH] Update TransactionState.swift - build fix for Xcode 26 toolchain As Xcode 26 has stricter type inference, the body closure needs to be re-wrapped in another closure to ensure type inference. Tested on Xcode 26 beta 2. --- Sources/Atoms/Core/TransactionState.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/Atoms/Core/TransactionState.swift b/Sources/Atoms/Core/TransactionState.swift index e1af9804..c28fb6bd 100644 --- a/Sources/Atoms/Core/TransactionState.swift +++ b/Sources/Atoms/Core/TransactionState.swift @@ -14,7 +14,7 @@ internal final class TransactionState { _ body: @MainActor @escaping () -> @MainActor () -> Void ) { self.key = key - self.body = body + self.body = { return body() } /// wrap `body` closure to allow for type inference in Xcode 26 toolchain } var onTermination: (@MainActor () -> Void)? {