Skip to content

Commit

Permalink
fix ChartsOrg#2222 move default backgroundColor to initialize() as in…
Browse files Browse the repository at this point in the history
…itWithCoder also needs it
  • Loading branch information
liuxuan30 committed Mar 10, 2017
1 parent 63e17ca commit f2fc9dd
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 @@ -197,10 +197,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 @@ -218,6 +214,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 f2fc9dd

Please sign in to comment.