Skip to content

Commit

Permalink
Added back some missing imports (to preserve iOS 7 support)
Browse files Browse the repository at this point in the history
Although this will not last for long.
Next iOS 7 release will mean removing support for 7.0.
  • Loading branch information
danielgindi committed Feb 28, 2016
1 parent ca6861f commit d8f4eb3
Show file tree
Hide file tree
Showing 51 changed files with 161 additions and 3 deletions.
5 changes: 5 additions & 0 deletions Charts/Classes/Animation/ChartAnimator.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@
//

import Foundation
import CoreGraphics

#if !os(OSX)
import UIKit
#endif

@objc
public protocol ChartAnimatorDelegate
Expand Down
4 changes: 4 additions & 0 deletions Charts/Classes/Charts/BarLineChartViewBase.swift
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@
import Foundation
import CoreGraphics

#if !os(OSX)
import UIKit
#endif

/// Base-class of LineChart, BarChart, ScatterChart and CandleStickChart.
public class BarLineChartViewBase: ChartViewBase, BarLineScatterCandleBubbleChartDataProvider, NSUIGestureRecognizerDelegate
{
Expand Down
5 changes: 5 additions & 0 deletions Charts/Classes/Charts/ChartViewBase.swift
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@
// Based on https://github.com/PhilJay/MPAndroidChart/commit/c42b880

import Foundation
import CoreGraphics

#if !os(OSX)
import UIKit
#endif

@objc
public protocol ChartViewDelegate
Expand Down
5 changes: 5 additions & 0 deletions Charts/Classes/Charts/HorizontalBarChartView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@
//

import Foundation
import CoreGraphics

#if !os(OSX)
import UIKit
#endif

/// BarChart with horizontal bar orientation. In this implementation, x- and y-axis are switched.
public class HorizontalBarChartView: BarChartView
Expand Down
5 changes: 5 additions & 0 deletions Charts/Classes/Charts/PieChartView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@
//

import Foundation
import CoreGraphics

#if !os(OSX)
import UIKit
#endif

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

#if !os(OSX)
import UIKit
#endif

/// Base class of PieChartView and RadarChartView.
public class PieRadarChartViewBase: ChartViewBase
{
Expand Down
2 changes: 1 addition & 1 deletion Charts/Classes/Components/ChartAxisBase.swift
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
//

import Foundation

import CoreGraphics

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

import Foundation
import CoreGraphics


/// This class encapsulates everything both Axis, Legend and LimitLines have in common
Expand Down
5 changes: 5 additions & 0 deletions Charts/Classes/Components/ChartLegend.swift
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@
//

import Foundation
import CoreGraphics

#if !os(OSX)
import UIKit
#endif


public class ChartLegend: ChartComponentBase
Expand Down
1 change: 1 addition & 0 deletions Charts/Classes/Components/ChartLimitLine.swift
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
//

import Foundation
import CoreGraphics


/// The limit line is an additional feature for all Line, Bar and ScatterCharts.
Expand Down
1 change: 1 addition & 0 deletions Charts/Classes/Components/ChartMarker.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
//

import Foundation
import CoreGraphics


public class ChartMarker: ChartComponentBase
Expand Down
2 changes: 1 addition & 1 deletion Charts/Classes/Components/ChartXAxis.swift
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
//

import Foundation

import CoreGraphics

public class ChartXAxis: ChartAxisBase
{
Expand Down
5 changes: 5 additions & 0 deletions Charts/Classes/Components/ChartYAxis.swift
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@
//

import Foundation
import CoreGraphics

#if !os(OSX)
import UIKit
#endif


/// Class representing the y-axis labels settings and its entries.
Expand Down
1 change: 1 addition & 0 deletions Charts/Classes/Data/Implementations/ChartBaseDataSet.swift
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
//

import Foundation
import CoreGraphics


public class ChartBaseDataSet: NSObject, IChartDataSet
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
//

import Foundation
import CoreGraphics


public class BarLineScatterCandleBubbleChartDataSet: ChartDataSet, IBarLineScatterCandleBubbleChartDataSet
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
// https://github.com/danielgindi/ios-charts
//


import Foundation
import CoreGraphics

public class ScatterChartData: BarLineScatterCandleBubbleChartData
{
Expand Down
1 change: 1 addition & 0 deletions Charts/Classes/Data/Interfaces/IBarChartDataSet.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
//

import Foundation
import CoreGraphics

@objc
public protocol IBarChartDataSet: IBarLineScatterCandleBubbleChartDataSet
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
//

import Foundation
import CoreGraphics

@objc
public protocol IBarLineScatterCandleBubbleChartDataSet: IChartDataSet
Expand Down
1 change: 1 addition & 0 deletions Charts/Classes/Data/Interfaces/IBubbleChartDataSet.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
//

import Foundation
import CoreGraphics

@objc
public protocol IBubbleChartDataSet: IBarLineScatterCandleBubbleChartDataSet
Expand Down
1 change: 1 addition & 0 deletions Charts/Classes/Data/Interfaces/ICandleChartDataSet.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
//

import Foundation
import CoreGraphics

@objc
public protocol ICandleChartDataSet: ILineScatterCandleRadarChartDataSet
Expand Down
1 change: 1 addition & 0 deletions Charts/Classes/Data/Interfaces/ILineChartDataSet.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
//

import Foundation
import CoreGraphics

@objc
public protocol ILineChartDataSet: ILineRadarChartDataSet
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
//

import Foundation
import CoreGraphics

@objc
public protocol ILineRadarChartDataSet: ILineScatterCandleRadarChartDataSet
Expand Down
5 changes: 5 additions & 0 deletions Charts/Classes/Data/Interfaces/IPieChartDataSet.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@
//

import Foundation
import CoreGraphics

#if !os(OSX)
import UIKit
#endif

@objc
public protocol IPieChartDataSet: IChartDataSet
Expand Down
1 change: 1 addition & 0 deletions Charts/Classes/Data/Interfaces/IScatterChartDataSet.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
//

import Foundation
import CoreGraphics

@objc
public protocol IScatterChartDataSet: ILineScatterCandleRadarChartDataSet
Expand Down
5 changes: 5 additions & 0 deletions Charts/Classes/Formatters/ChartDefaultFillFormatter.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@
//

import Foundation
import CoreGraphics

#if !os(OSX)
import UIKit
#endif

/// Default formatter that calculates the position of the filled line.
public class ChartDefaultFillFormatter: NSObject, ChartFillFormatter
Expand Down
5 changes: 5 additions & 0 deletions Charts/Classes/Jobs/AnimatedMoveViewJob.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@
//

import Foundation
import CoreGraphics

#if !os(OSX)
import UIKit
#endif

public class AnimatedMoveChartViewJob: AnimatedViewPortJob
{
Expand Down
5 changes: 5 additions & 0 deletions Charts/Classes/Jobs/AnimatedViewPortJob.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@
//

import Foundation
import CoreGraphics

#if !os(OSX)
import UIKit
#endif

public class AnimatedViewPortJob: ChartViewPortJob
{
Expand Down
1 change: 1 addition & 0 deletions Charts/Classes/Jobs/AnimatedZoomViewJob.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
//

import Foundation
import CoreGraphics

public class AnimatedZoomChartViewJob: AnimatedViewPortJob
{
Expand Down
1 change: 1 addition & 0 deletions Charts/Classes/Jobs/ChartViewPortJob.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
//

import Foundation
import CoreGraphics

// This defines a viewport modification job, used for delaying or animating viewport changes
public class ChartViewPortJob
Expand Down
5 changes: 5 additions & 0 deletions Charts/Classes/Jobs/MoveChartViewJob.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@
//

import Foundation
import CoreGraphics

#if !os(OSX)
import UIKit
#endif

public class MoveChartViewJob: ChartViewPortJob
{
Expand Down
5 changes: 5 additions & 0 deletions Charts/Classes/Jobs/ZoomChartViewJob.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@
//

import Foundation
import CoreGraphics

#if !os(OSX)
import UIKit
#endif

public class ZoomChartViewJob: ChartViewPortJob
{
Expand Down
3 changes: 3 additions & 0 deletions Charts/Classes/Renderers/BarChartRenderer.swift
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@
import Foundation
import CoreGraphics

#if !os(OSX)
import UIKit
#endif

public class BarChartRenderer: ChartDataRendererBase
{
Expand Down
4 changes: 4 additions & 0 deletions Charts/Classes/Renderers/BubbleChartRenderer.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@
import Foundation
import CoreGraphics

#if !os(OSX)
import UIKit
#endif


public class BubbleChartRenderer: ChartDataRendererBase
{
Expand Down
4 changes: 4 additions & 0 deletions Charts/Classes/Renderers/CandleStickChartRenderer.swift
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@
import Foundation
import CoreGraphics

#if !os(OSX)
import UIKit
#endif


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

import Foundation
import CoreGraphics


public class ChartAxisRendererBase: ChartRendererBase
Expand Down
4 changes: 4 additions & 0 deletions Charts/Classes/Renderers/ChartLegendRenderer.swift
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@
import Foundation
import CoreGraphics

#if !os(OSX)
import UIKit
#endif


public class ChartLegendRenderer: ChartRendererBase
{
Expand Down
4 changes: 4 additions & 0 deletions Charts/Classes/Renderers/ChartXAxisRenderer.swift
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@
import Foundation
import CoreGraphics

#if !os(OSX)
import UIKit
#endif


public class ChartXAxisRenderer: ChartAxisRendererBase
{
Expand Down
4 changes: 4 additions & 0 deletions Charts/Classes/Renderers/ChartXAxisRendererBarChart.swift
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@
import Foundation
import CoreGraphics

#if !os(OSX)
import UIKit
#endif


public class ChartXAxisRendererBarChart: ChartXAxisRenderer
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@
import Foundation
import CoreGraphics

#if !os(OSX)
import UIKit
#endif


public class ChartXAxisRendererHorizontalBarChart: ChartXAxisRendererBarChart
{
Expand Down
Loading

0 comments on commit d8f4eb3

Please sign in to comment.