We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aff32e6 commit aa81037Copy full SHA for aa81037
Sources/RegexBenchmark/BenchmarkChart.swift
@@ -9,7 +9,7 @@
9
//
10
//===----------------------------------------------------------------------===//
11
12
-#if os(macOS)
+#if os(macOS) && canImport(Charts)
13
14
import Charts
15
import SwiftUI
Sources/RegexBenchmark/BenchmarkResults.swift
@@ -100,7 +100,7 @@ extension BenchmarkRunner {
100
print(item)
101
}
102
103
- #if os(macOS)
+ #if os(macOS) && canImport(Charts)
104
if showChart {
105
print("""
106
=== Comparison chart =================================================================
0 commit comments