Skip to content

Commit

Permalink
Merge pull request #2156 from thierryH91200/master
Browse files Browse the repository at this point in the history
'backgroundColor' is inaccessible due to 'internal' protection level …
  • Loading branch information
pmairoldi committed Feb 13, 2017
2 parents 8532371 + 6446d29 commit 32e0410
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Source/Charts/Utils/Platform.swift
Original file line number Diff line number Diff line change
Expand Up @@ -445,7 +445,7 @@ types are aliased to either their UI* implementation (on iOS) or their NS* imple
super.touchesCancelled(with: event!)
}

var backgroundColor: NSUIColor?
open var backgroundColor: NSUIColor?
{
get
{
Expand All @@ -455,6 +455,7 @@ types are aliased to either their UI* implementation (on iOS) or their NS* imple
}
set
{
self.wantsLayer = true
self.layer?.backgroundColor = newValue == nil ? nil : newValue!.cgColor
}
}
Expand Down

0 comments on commit 32e0410

Please sign in to comment.