Skip to content

Commit

Permalink
Replace compiler with swift in some places
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxDesiatov committed Nov 22, 2021
1 parent 2ee9fc5 commit 534784c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Sources/TokamakCore/Modifiers/TaskModifier.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
2 changes: 1 addition & 1 deletion Sources/TokamakDemo/Modifiers/TaskDemo.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion Sources/TokamakDemo/TokamakDemo.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 534784c

Please sign in to comment.