Skip to content

Commit

Permalink
Fix Xcode 14.3 import warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
FelixHerrmann committed Apr 9, 2023
1 parent d8d96d8 commit 71ea447
Show file tree
Hide file tree
Showing 5 changed files with 36 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Source/Charts/Charts/ChartViewBase.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 8 additions & 0 deletions Source/Charts/Components/AxisBase.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,14 @@
import Foundation
import CoreGraphics

#if canImport(UIKit)
import UIKit
#endif

#if canImport(AppKit)
import AppKit
#endif

/// Base class for all axes
@objc(ChartAxisBase)
open class AxisBase: ComponentBase
Expand Down
7 changes: 7 additions & 0 deletions Source/Charts/Components/ChartLimitLine.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,13 @@
import Foundation
import CoreGraphics

#if canImport(UIKit)
import UIKit
#endif

#if canImport(AppKit)
import AppKit
#endif

/// 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).
Expand Down
8 changes: 8 additions & 0 deletions Source/Charts/Components/Legend.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,14 @@
import Foundation
import CoreGraphics

#if canImport(UIKit)
import UIKit
#endif

#if canImport(AppKit)
import AppKit
#endif

@objc(ChartLegend)
open class Legend: ComponentBase
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,13 @@
import Foundation
import CoreGraphics

#if canImport(UIKit)
import UIKit
#endif

#if canImport(AppKit)
import AppKit
#endif

open class BarChartDataSet: BarLineScatterCandleBubbleChartDataSet, BarChartDataSetProtocol
{
Expand Down

0 comments on commit 71ea447

Please sign in to comment.