From 1194e2f487a4d25400fe777ce8caded26f50c042 Mon Sep 17 00:00:00 2001 From: Andreas Bauer Date: Fri, 13 Sep 2024 15:15:20 +0200 Subject: [PATCH] Compatibility with Swift 5 toolchain --- Sources/Spezi/Capabilities/Application.swift | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Sources/Spezi/Capabilities/Application.swift b/Sources/Spezi/Capabilities/Application.swift index b86e691..d97acf8 100644 --- a/Sources/Spezi/Capabilities/Application.swift +++ b/Sources/Spezi/Capabilities/Application.swift @@ -87,7 +87,13 @@ public struct Application { } -extension Application: @preconcurrency DynamicProperty { +#if compiler(>=6) +extension Application: @preconcurrency DynamicProperty {} +#else +extension Application: DynamicProperty {} +#endif + +extension Application { @MainActor public func update() { guard state.spezi == nil else {