Fix Xcode 14.3 import warnings
@@ -13,8 +13,12 @@
import Foundation
import CoreGraphics
-#if !os(OSX)
- import UIKit
+#if canImport(UIKit)
+import UIKit
+#endif
+
+#if canImport(AppKit)
+import AppKit
#endif
@objc
@@ -12,6 +12,14 @@
/// Base class for all axes
@objc(ChartAxisBase)
open class AxisBase: ComponentBase
@@ -12,6 +12,13 @@
/// The limit line is an additional feature for all Line, Bar and ScatterCharts.
/// It allows the displaying of an additional line in the chart that marks a certain maximum / limit on the specified axis (x- or y-axis).
@objc(ChartLegend)
open class Legend: ComponentBase
{
open class BarChartDataSet: BarLineScatterCandleBubbleChartDataSet, BarChartDataSetProtocol