Skip to content

Commit

Permalink
Namespaces that enum in ObjC
Browse files Browse the repository at this point in the history
  • Loading branch information
danielgindi committed Apr 30, 2015
1 parent 382eb1f commit c2f6d78
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions Charts/Classes/Charts/CombinedChartView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public class CombinedChartView: BarLineChartViewBase

/// enum that allows to specify the order in which the different data objects for the combined-chart are drawn
@objc
public enum DrawOrder: Int
public enum CombinedChartDrawOrder: Int
{
case Bar
case Line
Expand Down Expand Up @@ -181,7 +181,7 @@ public class CombinedChartView: BarLineChartViewBase
}
set
{
(renderer as! CombinedChartRenderer!).drawOrder = newValue.map { DrawOrder(rawValue: $0)! };
(renderer as! CombinedChartRenderer!).drawOrder = newValue.map { CombinedChartDrawOrder(rawValue: $0)! };
}
}
}
4 changes: 2 additions & 2 deletions Charts/Classes/Renderers/CombinedChartRenderer.swift
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public class CombinedChartRenderer: ChartDataRendererBase,

internal var _renderers = [ChartDataRendererBase]();

internal var _drawOrder: [CombinedChartView.DrawOrder] = [.Bar, .Line, .Candle, .Scatter];
internal var _drawOrder: [CombinedChartView.CombinedChartDrawOrder] = [.Bar, .Line, .Candle, .Scatter];

public init(chart: CombinedChartView, animator: ChartAnimator, viewPortHandler: ChartViewPortHandler)
{
Expand Down Expand Up @@ -330,7 +330,7 @@ public class CombinedChartRenderer: ChartDataRendererBase,
/// the order in which the provided data objects should be drawn.
/// The earlier you place them in the provided array, the further they will be in the background.
/// e.g. if you provide [DrawOrder.Bar, DrawOrder.Line], the bars will be drawn behind the lines.
public var drawOrder: [CombinedChartView.DrawOrder]
public var drawOrder: [CombinedChartView.CombinedChartDrawOrder]
{
get
{
Expand Down
2 changes: 1 addition & 1 deletion ChartsDemo/Classes/Demos/CombinedChartViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ - (void)viewDidLoad
_chartView.drawGridBackgroundEnabled = NO;
_chartView.drawBarShadowEnabled = NO;

_chartView.drawOrder = @[@(DrawOrderBar), @(DrawOrderLine)];
_chartView.drawOrder = @[@(CombinedChartDrawOrderBar), @(CombinedChartDrawOrderLine)];

ChartYAxis *rightAxis = _chartView.rightAxis;
rightAxis.drawGridLinesEnabled = NO;
Expand Down

0 comments on commit c2f6d78

Please sign in to comment.