diff --git a/Charts/Classes/Animation/ChartAnimationEasing.swift b/Charts/Classes/Animation/ChartAnimationEasing.swift index 705542d96f..3aef551583 100644 --- a/Charts/Classes/Animation/ChartAnimationEasing.swift +++ b/Charts/Classes/Animation/ChartAnimationEasing.swift @@ -13,6 +13,7 @@ // import Foundation +import CoreGraphics.CGBase @objc public enum ChartEasingOption: Int diff --git a/Charts/Classes/Charts/BarChartView.swift b/Charts/Classes/Charts/BarChartView.swift index 01c869cc4e..05b1e2e0a3 100644 --- a/Charts/Classes/Charts/BarChartView.swift +++ b/Charts/Classes/Charts/BarChartView.swift @@ -12,6 +12,7 @@ // import Foundation +import CoreGraphics.CGBase /// Chart that draws bars. public class BarChartView: BarLineChartViewBase, BarChartRendererDelegate diff --git a/Charts/Classes/Charts/BarLineChartViewBase.swift b/Charts/Classes/Charts/BarLineChartViewBase.swift index cd956a6a7d..df4e4e9954 100644 --- a/Charts/Classes/Charts/BarLineChartViewBase.swift +++ b/Charts/Classes/Charts/BarLineChartViewBase.swift @@ -12,6 +12,8 @@ // import Foundation +import CoreGraphics.CGBase +import UIKit.UIGestureRecognizer /// Base-class of LineChart, BarChart, ScatterChart and CandleStickChart. public class BarLineChartViewBase: ChartViewBase, UIGestureRecognizerDelegate diff --git a/Charts/Classes/Charts/CandleStickChartView.swift b/Charts/Classes/Charts/CandleStickChartView.swift index 03642d8ef5..cf943b5723 100644 --- a/Charts/Classes/Charts/CandleStickChartView.swift +++ b/Charts/Classes/Charts/CandleStickChartView.swift @@ -12,6 +12,7 @@ // import Foundation +import CoreGraphics.CGBase /// Financial chart type that draws candle-sticks. public class CandleStickChartView: BarLineChartViewBase, CandleStickChartRendererDelegate diff --git a/Charts/Classes/Charts/CombinedChartView.swift b/Charts/Classes/Charts/CombinedChartView.swift index c8847fbde2..502c2aa2a1 100644 --- a/Charts/Classes/Charts/CombinedChartView.swift +++ b/Charts/Classes/Charts/CombinedChartView.swift @@ -12,6 +12,7 @@ // import Foundation +import CoreGraphics.CGBase /// This chart class allows the combination of lines, bars, scatter and candle data all displayed in one chart area. public class CombinedChartView: BarLineChartViewBase diff --git a/Charts/Classes/Charts/HorizontalBarChartView.swift b/Charts/Classes/Charts/HorizontalBarChartView.swift index 26ce1753ee..ace3003d54 100644 --- a/Charts/Classes/Charts/HorizontalBarChartView.swift +++ b/Charts/Classes/Charts/HorizontalBarChartView.swift @@ -12,6 +12,7 @@ // import Foundation +import UIKit /// BarChart with horizontal bar orientation. In this implementation, x- and y-axis are switched. public class HorizontalBarChartView: BarChartView diff --git a/Charts/Classes/Charts/LineChartView.swift b/Charts/Classes/Charts/LineChartView.swift index 8603d803b9..d9e2f5f18c 100644 --- a/Charts/Classes/Charts/LineChartView.swift +++ b/Charts/Classes/Charts/LineChartView.swift @@ -12,6 +12,7 @@ // import Foundation +import CoreGraphics.CGBase /// Chart that draws lines, surfaces, circles, ... public class LineChartView: BarLineChartViewBase, LineChartRendererDelegate diff --git a/Charts/Classes/Charts/PieChartView.swift b/Charts/Classes/Charts/PieChartView.swift index 20f3f81475..258a7485f9 100644 --- a/Charts/Classes/Charts/PieChartView.swift +++ b/Charts/Classes/Charts/PieChartView.swift @@ -12,6 +12,7 @@ // import Foundation +import UIKit /// View that represents a pie chart. Draws cake like slices. public class PieChartView: PieRadarChartViewBase diff --git a/Charts/Classes/Charts/PieRadarChartViewBase.swift b/Charts/Classes/Charts/PieRadarChartViewBase.swift index 33df6ffbdc..98241df3ee 100644 --- a/Charts/Classes/Charts/PieRadarChartViewBase.swift +++ b/Charts/Classes/Charts/PieRadarChartViewBase.swift @@ -12,6 +12,8 @@ // import Foundation +import CoreGraphics.CGBase +import UIKit.UIGestureRecognizer /// Base class of PieChartView and RadarChartView. public class PieRadarChartViewBase: ChartViewBase diff --git a/Charts/Classes/Charts/RadarChartView.swift b/Charts/Classes/Charts/RadarChartView.swift index ae1eeb6741..ff3dece5e4 100644 --- a/Charts/Classes/Charts/RadarChartView.swift +++ b/Charts/Classes/Charts/RadarChartView.swift @@ -12,6 +12,8 @@ // import Foundation +import CoreGraphics.CGBase +import UIKit.UIColor /// Implementation of the RadarChart, a "spidernet"-like chart. It works best /// when displaying 5-10 entries per DataSet. diff --git a/Charts/Classes/Charts/ScatterChartView.swift b/Charts/Classes/Charts/ScatterChartView.swift index 201ae17bca..3b2f738370 100644 --- a/Charts/Classes/Charts/ScatterChartView.swift +++ b/Charts/Classes/Charts/ScatterChartView.swift @@ -12,6 +12,7 @@ // import Foundation +import CoreGraphics.CGBase /// The ScatterChart. Draws dots, triangles, squares and custom shapes into the chartview. public class ScatterChartView: BarLineChartViewBase, ScatterChartRendererDelegate diff --git a/Charts/Classes/Data/BarChartData.swift b/Charts/Classes/Data/BarChartData.swift index f5c854eb6e..f1e846b52e 100644 --- a/Charts/Classes/Data/BarChartData.swift +++ b/Charts/Classes/Data/BarChartData.swift @@ -12,6 +12,7 @@ // import Foundation +import CoreGraphics.CGBase public class BarChartData: BarLineScatterCandleChartData { @@ -39,4 +40,4 @@ public class BarChartData: BarLineScatterCandleChartData { return _dataSets.count > 1 ? true : false; } -} \ No newline at end of file +} diff --git a/Charts/Classes/Data/BarChartDataSet.swift b/Charts/Classes/Data/BarChartDataSet.swift index 002413e9dd..92c1cf9ac3 100644 --- a/Charts/Classes/Data/BarChartDataSet.swift +++ b/Charts/Classes/Data/BarChartDataSet.swift @@ -12,6 +12,8 @@ // import Foundation +import CoreGraphics.CGBase +import UIKit.UIColor public class BarChartDataSet: BarLineScatterCandleChartDataSet { diff --git a/Charts/Classes/Data/CandleChartDataSet.swift b/Charts/Classes/Data/CandleChartDataSet.swift index 09f5c13a53..017fbd846d 100644 --- a/Charts/Classes/Data/CandleChartDataSet.swift +++ b/Charts/Classes/Data/CandleChartDataSet.swift @@ -12,6 +12,8 @@ // import Foundation +import CoreGraphics.CGBase +import UIKit.UIColor public class CandleChartDataSet: BarLineScatterCandleChartDataSet { diff --git a/Charts/Classes/Data/LineChartDataSet.swift b/Charts/Classes/Data/LineChartDataSet.swift index bce103810c..2b24ae3ac2 100644 --- a/Charts/Classes/Data/LineChartDataSet.swift +++ b/Charts/Classes/Data/LineChartDataSet.swift @@ -12,6 +12,8 @@ // import Foundation +import CoreGraphics.CGBase +import UIKit.UIColor public class LineChartDataSet: LineRadarChartDataSet { diff --git a/Charts/Classes/Data/LineRadarChartDataSet.swift b/Charts/Classes/Data/LineRadarChartDataSet.swift index fbd632badf..6793853d72 100644 --- a/Charts/Classes/Data/LineRadarChartDataSet.swift +++ b/Charts/Classes/Data/LineRadarChartDataSet.swift @@ -12,6 +12,8 @@ // import Foundation +import CoreGraphics.CGBase +import UIKit.UIColor public class LineRadarChartDataSet: BarLineScatterCandleChartDataSet { diff --git a/Charts/Classes/Data/PieChartDataSet.swift b/Charts/Classes/Data/PieChartDataSet.swift index 2adcfec7ea..f0ba6aaaf6 100644 --- a/Charts/Classes/Data/PieChartDataSet.swift +++ b/Charts/Classes/Data/PieChartDataSet.swift @@ -13,6 +13,9 @@ // import Foundation +import CoreGraphics.CGBase +import UIKit.UIColor +import UIKit.UIFont public class PieChartDataSet: ChartDataSet { diff --git a/Charts/Classes/Data/RadarChartData.swift b/Charts/Classes/Data/RadarChartData.swift index ec3a2a009b..bd901d594e 100644 --- a/Charts/Classes/Data/RadarChartData.swift +++ b/Charts/Classes/Data/RadarChartData.swift @@ -12,6 +12,8 @@ // import Foundation +import CoreGraphics.CGBase +import UIKit.UIColor public class RadarChartData: ChartData { diff --git a/Charts/Classes/Data/RadarChartDataSet.swift b/Charts/Classes/Data/RadarChartDataSet.swift index a408c49d49..f056cc1eb0 100644 --- a/Charts/Classes/Data/RadarChartDataSet.swift +++ b/Charts/Classes/Data/RadarChartDataSet.swift @@ -13,6 +13,7 @@ // import Foundation +import UIKit.UIFont public class RadarChartDataSet: LineRadarChartDataSet { diff --git a/Charts/Classes/Data/ScatterChartData.swift b/Charts/Classes/Data/ScatterChartData.swift index 667363a6e2..6b5b025363 100644 --- a/Charts/Classes/Data/ScatterChartData.swift +++ b/Charts/Classes/Data/ScatterChartData.swift @@ -11,7 +11,7 @@ // https://github.com/danielgindi/ios-charts // -import Foundation +import UIKit public class ScatterChartData: BarLineScatterCandleChartData { diff --git a/Charts/Classes/Renderers/BarChartRenderer.swift b/Charts/Classes/Renderers/BarChartRenderer.swift index 0156111b1d..4753522434 100644 --- a/Charts/Classes/Renderers/BarChartRenderer.swift +++ b/Charts/Classes/Renderers/BarChartRenderer.swift @@ -12,6 +12,8 @@ // import Foundation +import CoreGraphics.CGBase +import UIKit.UIFont @objc public protocol BarChartRendererDelegate diff --git a/Charts/Classes/Renderers/CandleStickChartRenderer.swift b/Charts/Classes/Renderers/CandleStickChartRenderer.swift index 90258d1465..1dc5d832ca 100644 --- a/Charts/Classes/Renderers/CandleStickChartRenderer.swift +++ b/Charts/Classes/Renderers/CandleStickChartRenderer.swift @@ -12,6 +12,8 @@ // import Foundation +import CoreGraphics.CGBase +import UIKit.UIColor @objc public protocol CandleStickChartRendererDelegate diff --git a/Charts/Classes/Renderers/ChartDataRendererBase.swift b/Charts/Classes/Renderers/ChartDataRendererBase.swift index 93d7a23a52..7aaa1ed247 100644 --- a/Charts/Classes/Renderers/ChartDataRendererBase.swift +++ b/Charts/Classes/Renderers/ChartDataRendererBase.swift @@ -12,6 +12,7 @@ // import Foundation +import CoreGraphics.CGBase public class ChartDataRendererBase: ChartRendererBase { diff --git a/Charts/Classes/Renderers/ChartLegendRenderer.swift b/Charts/Classes/Renderers/ChartLegendRenderer.swift index 943f138f10..64358c6154 100644 --- a/Charts/Classes/Renderers/ChartLegendRenderer.swift +++ b/Charts/Classes/Renderers/ChartLegendRenderer.swift @@ -12,7 +12,9 @@ // import Foundation -import CoreGraphics; +import CoreGraphics.CGBase +import UIKit.UIColor +import UIKit.UIFont public class ChartLegendRenderer: ChartRendererBase { diff --git a/Charts/Classes/Renderers/ChartRendererBase.swift b/Charts/Classes/Renderers/ChartRendererBase.swift index 870f874dff..6eb78a40ed 100644 --- a/Charts/Classes/Renderers/ChartRendererBase.swift +++ b/Charts/Classes/Renderers/ChartRendererBase.swift @@ -12,6 +12,7 @@ // import Foundation +import CoreGraphics.CGBase public class ChartRendererBase: NSObject { diff --git a/Charts/Classes/Renderers/ChartXAxisRenderer.swift b/Charts/Classes/Renderers/ChartXAxisRenderer.swift index 1cbe504cd3..4be1fe6d92 100644 --- a/Charts/Classes/Renderers/ChartXAxisRenderer.swift +++ b/Charts/Classes/Renderers/ChartXAxisRenderer.swift @@ -12,6 +12,8 @@ // import Foundation +import CoreGraphics.CGBase +import UIKit.UIFont public class ChartXAxisRenderer: ChartAxisRendererBase { diff --git a/Charts/Classes/Renderers/ChartXAxisRendererBarChart.swift b/Charts/Classes/Renderers/ChartXAxisRendererBarChart.swift index 542b55eb22..77566a97ca 100644 --- a/Charts/Classes/Renderers/ChartXAxisRendererBarChart.swift +++ b/Charts/Classes/Renderers/ChartXAxisRendererBarChart.swift @@ -12,6 +12,8 @@ // import Foundation +import CoreGraphics.CGBase +import UIKit.UIFont public class ChartXAxisRendererBarChart: ChartXAxisRenderer { diff --git a/Charts/Classes/Renderers/ChartXAxisRendererHorizontalBarChart.swift b/Charts/Classes/Renderers/ChartXAxisRendererHorizontalBarChart.swift index 092e4d0244..3a056d75c8 100644 --- a/Charts/Classes/Renderers/ChartXAxisRendererHorizontalBarChart.swift +++ b/Charts/Classes/Renderers/ChartXAxisRendererHorizontalBarChart.swift @@ -12,6 +12,8 @@ // import Foundation +import CoreGraphics.CGBase +import UIKit.UIFont public class ChartXAxisRendererHorizontalBarChart: ChartXAxisRendererBarChart { diff --git a/Charts/Classes/Renderers/ChartXAxisRendererRadarChart.swift b/Charts/Classes/Renderers/ChartXAxisRendererRadarChart.swift index 4aa193fc13..701034a9c6 100644 --- a/Charts/Classes/Renderers/ChartXAxisRendererRadarChart.swift +++ b/Charts/Classes/Renderers/ChartXAxisRendererRadarChart.swift @@ -12,6 +12,8 @@ // import Foundation +import CoreGraphics.CGBase +import UIKit.UIFont public class ChartXAxisRendererRadarChart: ChartXAxisRenderer { diff --git a/Charts/Classes/Renderers/ChartYAxisRenderer.swift b/Charts/Classes/Renderers/ChartYAxisRenderer.swift index 4393c67ca0..1d6d0bbe6f 100644 --- a/Charts/Classes/Renderers/ChartYAxisRenderer.swift +++ b/Charts/Classes/Renderers/ChartYAxisRenderer.swift @@ -12,6 +12,8 @@ // import Foundation +import CoreGraphics.CGBase +import UIKit.UIFont public class ChartYAxisRenderer: ChartAxisRendererBase { diff --git a/Charts/Classes/Renderers/ChartYAxisRendererHorizontalBarChart.swift b/Charts/Classes/Renderers/ChartYAxisRendererHorizontalBarChart.swift index 147b980b0c..eb3fcea197 100644 --- a/Charts/Classes/Renderers/ChartYAxisRendererHorizontalBarChart.swift +++ b/Charts/Classes/Renderers/ChartYAxisRendererHorizontalBarChart.swift @@ -12,6 +12,8 @@ // import Foundation +import CoreGraphics.CGBase +import UIKit.UIFont public class ChartYAxisRendererHorizontalBarChart: ChartYAxisRenderer { diff --git a/Charts/Classes/Renderers/ChartYAxisRendererRadarChart.swift b/Charts/Classes/Renderers/ChartYAxisRendererRadarChart.swift index ae4ec2f73b..2b9cd01c67 100644 --- a/Charts/Classes/Renderers/ChartYAxisRendererRadarChart.swift +++ b/Charts/Classes/Renderers/ChartYAxisRendererRadarChart.swift @@ -12,6 +12,8 @@ // import Foundation +import CoreGraphics.CGBase +import UIKit.UIFont public class ChartYAxisRendererRadarChart: ChartYAxisRenderer { diff --git a/Charts/Classes/Renderers/CombinedChartRenderer.swift b/Charts/Classes/Renderers/CombinedChartRenderer.swift index 851eb7413d..073f705e74 100644 --- a/Charts/Classes/Renderers/CombinedChartRenderer.swift +++ b/Charts/Classes/Renderers/CombinedChartRenderer.swift @@ -12,6 +12,7 @@ // import Foundation +import CoreGraphics.CGBase public class CombinedChartRenderer: ChartDataRendererBase, LineChartRendererDelegate, diff --git a/Charts/Classes/Renderers/HorizontalBarChartRenderer.swift b/Charts/Classes/Renderers/HorizontalBarChartRenderer.swift index a1574a0ce0..69e73aee9c 100644 --- a/Charts/Classes/Renderers/HorizontalBarChartRenderer.swift +++ b/Charts/Classes/Renderers/HorizontalBarChartRenderer.swift @@ -12,6 +12,8 @@ // import Foundation +import CoreGraphics.CGBase +import UIKit.UIFont public class HorizontalBarChartRenderer: BarChartRenderer { diff --git a/Charts/Classes/Renderers/LineChartRenderer.swift b/Charts/Classes/Renderers/LineChartRenderer.swift index 7f3c89e07d..9841821838 100644 --- a/Charts/Classes/Renderers/LineChartRenderer.swift +++ b/Charts/Classes/Renderers/LineChartRenderer.swift @@ -12,6 +12,8 @@ // import Foundation +import CoreGraphics.CGBase +import UIKit.UIFont @objc public protocol LineChartRendererDelegate diff --git a/Charts/Classes/Renderers/PieChartRenderer.swift b/Charts/Classes/Renderers/PieChartRenderer.swift index 2abe6f1e05..2d56ad4419 100644 --- a/Charts/Classes/Renderers/PieChartRenderer.swift +++ b/Charts/Classes/Renderers/PieChartRenderer.swift @@ -12,6 +12,9 @@ // import Foundation +import CoreGraphics.CGBase +import UIKit.UIColor +import UIKit.UIFont public class PieChartRenderer: ChartDataRendererBase { diff --git a/Charts/Classes/Renderers/RadarChartRenderer.swift b/Charts/Classes/Renderers/RadarChartRenderer.swift index e25fa9e128..ebf8a408cc 100644 --- a/Charts/Classes/Renderers/RadarChartRenderer.swift +++ b/Charts/Classes/Renderers/RadarChartRenderer.swift @@ -12,6 +12,8 @@ // import Foundation +import CoreGraphics.CGBase +import UIKit.UIFont public class RadarChartRenderer: ChartDataRendererBase { diff --git a/Charts/Classes/Renderers/ScatterChartRenderer.swift b/Charts/Classes/Renderers/ScatterChartRenderer.swift index 510b53a19f..44e02fe2db 100644 --- a/Charts/Classes/Renderers/ScatterChartRenderer.swift +++ b/Charts/Classes/Renderers/ScatterChartRenderer.swift @@ -12,6 +12,8 @@ // import Foundation +import CoreGraphics.CGBase +import UIKit.UIFont @objc public protocol ScatterChartRendererDelegate diff --git a/Charts/Classes/Utils/ChartFillFormatter.swift b/Charts/Classes/Utils/ChartFillFormatter.swift index 85b1d77ec5..0686fa9d18 100644 --- a/Charts/Classes/Utils/ChartFillFormatter.swift +++ b/Charts/Classes/Utils/ChartFillFormatter.swift @@ -12,6 +12,7 @@ // import Foundation +import CoreGraphics.CGBase /// Protocol for providing a custom logic to where the filling line of a DataSet should end. If setFillEnabled(...) is set to true. @objc diff --git a/Charts/Classes/Utils/ChartTransformer.swift b/Charts/Classes/Utils/ChartTransformer.swift index 6dbff3e510..fa10aa1572 100644 --- a/Charts/Classes/Utils/ChartTransformer.swift +++ b/Charts/Classes/Utils/ChartTransformer.swift @@ -12,6 +12,7 @@ // import Foundation +import CoreGraphics.CGBase /// Transformer class that contains all matrices and is responsible for transforming values into pixels on the screen and backwards. public class ChartTransformer: NSObject diff --git a/Charts/Classes/Utils/ChartTransformerHorizontalBarChart.swift b/Charts/Classes/Utils/ChartTransformerHorizontalBarChart.swift index ecdf8ade23..89c1527970 100644 --- a/Charts/Classes/Utils/ChartTransformerHorizontalBarChart.swift +++ b/Charts/Classes/Utils/ChartTransformerHorizontalBarChart.swift @@ -12,6 +12,7 @@ // import Foundation +import CoreGraphics.CGBase public class ChartTransformerHorizontalBarChart: ChartTransformer { diff --git a/Charts/Classes/Utils/ChartViewPortHandler.swift b/Charts/Classes/Utils/ChartViewPortHandler.swift index 4ffb7fd297..bcbda9ffc2 100644 --- a/Charts/Classes/Utils/ChartViewPortHandler.swift +++ b/Charts/Classes/Utils/ChartViewPortHandler.swift @@ -12,6 +12,7 @@ // import Foundation +import CoreGraphics.CGBase public class ChartViewPortHandler {