Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add missing UIKit imports for iOS 7 support #45

Merged
merged 1 commit into from
Apr 23, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Charts/Classes/Animation/ChartAnimationEasing.swift
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
//

import Foundation
import CoreGraphics.CGBase

@objc
public enum ChartEasingOption: Int
Expand Down
1 change: 1 addition & 0 deletions Charts/Classes/Charts/BarChartView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
//

import Foundation
import CoreGraphics.CGBase

/// Chart that draws bars.
public class BarChartView: BarLineChartViewBase, BarChartRendererDelegate
Expand Down
2 changes: 2 additions & 0 deletions Charts/Classes/Charts/BarLineChartViewBase.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions Charts/Classes/Charts/CandleStickChartView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
//

import Foundation
import CoreGraphics.CGBase

/// Financial chart type that draws candle-sticks.
public class CandleStickChartView: BarLineChartViewBase, CandleStickChartRendererDelegate
Expand Down
1 change: 1 addition & 0 deletions Charts/Classes/Charts/CombinedChartView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions Charts/Classes/Charts/HorizontalBarChartView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions Charts/Classes/Charts/LineChartView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
//

import Foundation
import CoreGraphics.CGBase

/// Chart that draws lines, surfaces, circles, ...
public class LineChartView: BarLineChartViewBase, LineChartRendererDelegate
Expand Down
1 change: 1 addition & 0 deletions Charts/Classes/Charts/PieChartView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
//

import Foundation
import UIKit

/// View that represents a pie chart. Draws cake like slices.
public class PieChartView: PieRadarChartViewBase
Expand Down
2 changes: 2 additions & 0 deletions Charts/Classes/Charts/PieRadarChartViewBase.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
//

import Foundation
import CoreGraphics.CGBase
import UIKit.UIGestureRecognizer

/// Base class of PieChartView and RadarChartView.
public class PieRadarChartViewBase: ChartViewBase
Expand Down
2 changes: 2 additions & 0 deletions Charts/Classes/Charts/RadarChartView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
1 change: 1 addition & 0 deletions Charts/Classes/Charts/ScatterChartView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion Charts/Classes/Data/BarChartData.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
//

import Foundation
import CoreGraphics.CGBase

public class BarChartData: BarLineScatterCandleChartData
{
Expand Down Expand Up @@ -39,4 +40,4 @@ public class BarChartData: BarLineScatterCandleChartData
{
return _dataSets.count > 1 ? true : false;
}
}
}
2 changes: 2 additions & 0 deletions Charts/Classes/Data/BarChartDataSet.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
//

import Foundation
import CoreGraphics.CGBase
import UIKit.UIColor

public class BarChartDataSet: BarLineScatterCandleChartDataSet
{
Expand Down
2 changes: 2 additions & 0 deletions Charts/Classes/Data/CandleChartDataSet.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
//

import Foundation
import CoreGraphics.CGBase
import UIKit.UIColor

public class CandleChartDataSet: BarLineScatterCandleChartDataSet
{
Expand Down
2 changes: 2 additions & 0 deletions Charts/Classes/Data/LineChartDataSet.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
//

import Foundation
import CoreGraphics.CGBase
import UIKit.UIColor

public class LineChartDataSet: LineRadarChartDataSet
{
Expand Down
2 changes: 2 additions & 0 deletions Charts/Classes/Data/LineRadarChartDataSet.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
//

import Foundation
import CoreGraphics.CGBase
import UIKit.UIColor

public class LineRadarChartDataSet: BarLineScatterCandleChartDataSet
{
Expand Down
3 changes: 3 additions & 0 deletions Charts/Classes/Data/PieChartDataSet.swift
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@
//

import Foundation
import CoreGraphics.CGBase
import UIKit.UIColor
import UIKit.UIFont

public class PieChartDataSet: ChartDataSet
{
Expand Down
2 changes: 2 additions & 0 deletions Charts/Classes/Data/RadarChartData.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
//

import Foundation
import CoreGraphics.CGBase
import UIKit.UIColor

public class RadarChartData: ChartData
{
Expand Down
1 change: 1 addition & 0 deletions Charts/Classes/Data/RadarChartDataSet.swift
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
//

import Foundation
import UIKit.UIFont

public class RadarChartDataSet: LineRadarChartDataSet
{
Expand Down
2 changes: 1 addition & 1 deletion Charts/Classes/Data/ScatterChartData.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
// https://github.com/danielgindi/ios-charts
//

import Foundation
import UIKit

public class ScatterChartData: BarLineScatterCandleChartData
{
Expand Down
2 changes: 2 additions & 0 deletions Charts/Classes/Renderers/BarChartRenderer.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
//

import Foundation
import CoreGraphics.CGBase
import UIKit.UIFont

@objc
public protocol BarChartRendererDelegate
Expand Down
2 changes: 2 additions & 0 deletions Charts/Classes/Renderers/CandleStickChartRenderer.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
//

import Foundation
import CoreGraphics.CGBase
import UIKit.UIColor

@objc
public protocol CandleStickChartRendererDelegate
Expand Down
1 change: 1 addition & 0 deletions Charts/Classes/Renderers/ChartDataRendererBase.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
//

import Foundation
import CoreGraphics.CGBase

public class ChartDataRendererBase: ChartRendererBase
{
Expand Down
4 changes: 3 additions & 1 deletion Charts/Classes/Renderers/ChartLegendRenderer.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@
//

import Foundation
import CoreGraphics;
import CoreGraphics.CGBase
import UIKit.UIColor
import UIKit.UIFont

public class ChartLegendRenderer: ChartRendererBase
{
Expand Down
1 change: 1 addition & 0 deletions Charts/Classes/Renderers/ChartRendererBase.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
//

import Foundation
import CoreGraphics.CGBase

public class ChartRendererBase: NSObject
{
Expand Down
2 changes: 2 additions & 0 deletions Charts/Classes/Renderers/ChartXAxisRenderer.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
//

import Foundation
import CoreGraphics.CGBase
import UIKit.UIFont

public class ChartXAxisRenderer: ChartAxisRendererBase
{
Expand Down
2 changes: 2 additions & 0 deletions Charts/Classes/Renderers/ChartXAxisRendererBarChart.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
//

import Foundation
import CoreGraphics.CGBase
import UIKit.UIFont

public class ChartXAxisRendererBarChart: ChartXAxisRenderer
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
//

import Foundation
import CoreGraphics.CGBase
import UIKit.UIFont

public class ChartXAxisRendererHorizontalBarChart: ChartXAxisRendererBarChart
{
Expand Down
2 changes: 2 additions & 0 deletions Charts/Classes/Renderers/ChartXAxisRendererRadarChart.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
//

import Foundation
import CoreGraphics.CGBase
import UIKit.UIFont

public class ChartXAxisRendererRadarChart: ChartXAxisRenderer
{
Expand Down
2 changes: 2 additions & 0 deletions Charts/Classes/Renderers/ChartYAxisRenderer.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
//

import Foundation
import CoreGraphics.CGBase
import UIKit.UIFont

public class ChartYAxisRenderer: ChartAxisRendererBase
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
//

import Foundation
import CoreGraphics.CGBase
import UIKit.UIFont

public class ChartYAxisRendererHorizontalBarChart: ChartYAxisRenderer
{
Expand Down
2 changes: 2 additions & 0 deletions Charts/Classes/Renderers/ChartYAxisRendererRadarChart.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
//

import Foundation
import CoreGraphics.CGBase
import UIKit.UIFont

public class ChartYAxisRendererRadarChart: ChartYAxisRenderer
{
Expand Down
1 change: 1 addition & 0 deletions Charts/Classes/Renderers/CombinedChartRenderer.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
//

import Foundation
import CoreGraphics.CGBase

public class CombinedChartRenderer: ChartDataRendererBase,
LineChartRendererDelegate,
Expand Down
2 changes: 2 additions & 0 deletions Charts/Classes/Renderers/HorizontalBarChartRenderer.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
//

import Foundation
import CoreGraphics.CGBase
import UIKit.UIFont

public class HorizontalBarChartRenderer: BarChartRenderer
{
Expand Down
2 changes: 2 additions & 0 deletions Charts/Classes/Renderers/LineChartRenderer.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
//

import Foundation
import CoreGraphics.CGBase
import UIKit.UIFont

@objc
public protocol LineChartRendererDelegate
Expand Down
3 changes: 3 additions & 0 deletions Charts/Classes/Renderers/PieChartRenderer.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@
//

import Foundation
import CoreGraphics.CGBase
import UIKit.UIColor
import UIKit.UIFont

public class PieChartRenderer: ChartDataRendererBase
{
Expand Down
2 changes: 2 additions & 0 deletions Charts/Classes/Renderers/RadarChartRenderer.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
//

import Foundation
import CoreGraphics.CGBase
import UIKit.UIFont

public class RadarChartRenderer: ChartDataRendererBase
{
Expand Down
2 changes: 2 additions & 0 deletions Charts/Classes/Renderers/ScatterChartRenderer.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
//

import Foundation
import CoreGraphics.CGBase
import UIKit.UIFont

@objc
public protocol ScatterChartRendererDelegate
Expand Down
1 change: 1 addition & 0 deletions Charts/Classes/Utils/ChartFillFormatter.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions Charts/Classes/Utils/ChartTransformer.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
//

import Foundation
import CoreGraphics.CGBase

public class ChartTransformerHorizontalBarChart: ChartTransformer
{
Expand Down
1 change: 1 addition & 0 deletions Charts/Classes/Utils/ChartViewPortHandler.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
//

import Foundation
import CoreGraphics.CGBase

public class ChartViewPortHandler
{
Expand Down