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 committed Apr 24, 2017
2 parents b7c4db0 + 897f018 commit 97559a9
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 97559a9

Please sign in to comment.