From 534784ca7bf73b5116567edb761b779126f45c62 Mon Sep 17 00:00:00 2001 From: Max Desiatov Date: Mon, 22 Nov 2021 19:03:09 +0100 Subject: [PATCH] Replace `compiler` with `swift` in some places --- Sources/TokamakCore/Modifiers/TaskModifier.swift | 2 +- Sources/TokamakDemo/Modifiers/TaskDemo.swift | 2 +- Sources/TokamakDemo/TokamakDemo.swift | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Sources/TokamakCore/Modifiers/TaskModifier.swift b/Sources/TokamakCore/Modifiers/TaskModifier.swift index 0b6efea3f..0c3151d70 100644 --- a/Sources/TokamakCore/Modifiers/TaskModifier.swift +++ b/Sources/TokamakCore/Modifiers/TaskModifier.swift @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -#if compiler(>=5.5) +#if swift(>=5.5) public extension View { func task( diff --git a/Sources/TokamakDemo/Modifiers/TaskDemo.swift b/Sources/TokamakDemo/Modifiers/TaskDemo.swift index 1a159a4be..0392d0b1a 100644 --- a/Sources/TokamakDemo/Modifiers/TaskDemo.swift +++ b/Sources/TokamakDemo/Modifiers/TaskDemo.swift @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -#if os(WASI) && compiler(>=5.5) +#if os(WASI) && swift(>=5.5) import JavaScriptKit import TokamakDOM diff --git a/Sources/TokamakDemo/TokamakDemo.swift b/Sources/TokamakDemo/TokamakDemo.swift index 5db47d9bd..2851acf7b 100644 --- a/Sources/TokamakDemo/TokamakDemo.swift +++ b/Sources/TokamakDemo/TokamakDemo.swift @@ -133,7 +133,7 @@ struct TokamakDemoView: View { } Section(header: Text("Modifiers")) { NavItem("Shadow", destination: ShadowDemo()) - #if os(WASI) && compiler(>=5.5) + #if os(WASI) && swift(>=5.5) NavItem("Task", destination: TaskDemo()) #endif }