Skip to content

Commit

Permalink
fix #2222 move default backgroundColor to initialize() as initWithCod…
Browse files Browse the repository at this point in the history
…er also needs it
  • Loading branch information
liuxuan30 committed Mar 7, 2017
1 parent 6c27801 commit 2b9b6c5
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 2b9b6c5

Please sign in to comment.