Skip to content

Commit

Permalink
Merge pull request ChartsOrg#2228 from liuxuan30/2222backgroundColor
Browse files Browse the repository at this point in the history
fix ChartsOrg#2222 move default backgroundColor to initialize()
  • Loading branch information
liuxuan30 authored Apr 24, 2017
2 parents cddf136 + f2fc9dd commit 04c5820
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Source/Charts/Charts/ChartViewBase.swift
Original file line number Diff line number Diff line change
Expand Up @@ -200,10 +200,6 @@ open class ChartViewBase: NSUIView, ChartDataProvider, AnimatorDelegate
public override init(frame: CGRect)
{
super.init(frame: frame)

#if os(iOS)
self.backgroundColor = NSUIColor.clear
#endif
initialize()
}

Expand All @@ -221,6 +217,10 @@ open class ChartViewBase: NSUIView, ChartDataProvider, AnimatorDelegate

internal func initialize()
{
#if os(iOS)
self.backgroundColor = NSUIColor.clear
#endif

_animator = Animator()
_animator.delegate = self

Expand Down

0 comments on commit 04c5820

Please sign in to comment.