Skip to content

Commit

Permalink
Merge pull request #2335 from macteo/master
Browse files Browse the repository at this point in the history
Compatibility with swift playgrounds
  • Loading branch information
pmairoldi authored Sep 25, 2017
2 parents 0593be7 + 409cebf commit 2ccd171
Show file tree
Hide file tree
Showing 12 changed files with 15 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Source/Charts/Components/Description.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

@objc(ChartDescription)
open class Description: ComponentBase
{
Expand Down
1 change: 1 addition & 0 deletions Source/Charts/Data/Interfaces/IChartDataSet.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
//

import Foundation
import CoreGraphics

@objc
public protocol IChartDataSet
Expand Down
1 change: 1 addition & 0 deletions Source/Charts/Filters/DataApproximator.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
//

import Foundation
import CoreGraphics

@objc(ChartDataApproximator)
open class DataApproximator: NSObject
Expand Down
1 change: 1 addition & 0 deletions Source/Charts/Highlight/Highlight.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
//

import Foundation
import CoreGraphics

@objc(ChartHighlight)
open class Highlight: NSObject
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
// https://github.com/danielgindi/Charts
//
import Foundation
import CoreGraphics

open class ChevronDownShapeRenderer : NSObject, IShapeRenderer
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
// https://github.com/danielgindi/Charts
//
import Foundation
import CoreGraphics

open class ChevronUpShapeRenderer : NSObject, IShapeRenderer
{
Expand Down
1 change: 1 addition & 0 deletions Source/Charts/Renderers/Scatter/CircleShapeRenderer.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
// https://github.com/danielgindi/Charts
//
import Foundation
import CoreGraphics

open class CircleShapeRenderer : NSObject, IShapeRenderer
{
Expand Down
1 change: 1 addition & 0 deletions Source/Charts/Renderers/Scatter/CrossShapeRenderer.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
// https://github.com/danielgindi/Charts
//
import Foundation
import CoreGraphics

open class CrossShapeRenderer : NSObject, IShapeRenderer
{
Expand Down
1 change: 1 addition & 0 deletions Source/Charts/Renderers/Scatter/IShapeRenderer.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
//

import Foundation
import CoreGraphics

@objc
public protocol IShapeRenderer : NSObjectProtocol
Expand Down
1 change: 1 addition & 0 deletions Source/Charts/Renderers/Scatter/SquareShapeRenderer.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
// https://github.com/danielgindi/Charts
//
import Foundation
import CoreGraphics

open class SquareShapeRenderer : NSObject, IShapeRenderer
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
// https://github.com/danielgindi/Charts
//
import Foundation
import CoreGraphics

open class TriangleShapeRenderer : NSObject, IShapeRenderer
{
Expand Down
1 change: 1 addition & 0 deletions Source/Charts/Renderers/Scatter/XShapeRenderer.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
// https://github.com/danielgindi/Charts
//
import Foundation
import CoreGraphics

open class XShapeRenderer : NSObject, IShapeRenderer
{
Expand Down

0 comments on commit 2ccd171

Please sign in to comment.