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 }