Skip to content

Commit

Permalink
Default background color to .clear
Browse files Browse the repository at this point in the history
  • Loading branch information
danielepantaleone committed Aug 25, 2023
1 parent 0d7af85 commit e9d6102
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions Sources/DPCharts/Views/DPBarChartView/DPBarChartView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,7 @@ open class DPBarChartView: DPCanvasView {
// MARK: - Initialization

func commonInit() {
backgroundColor = .clear
isOpaque = false
addSubview(trackingView)
}
Expand Down
1 change: 1 addition & 0 deletions Sources/DPCharts/Views/DPHeatMapView/DPHeatMapView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -461,6 +461,7 @@ open class DPHeatMapView: UIView {
// MARK: - Initialization

func commonInit() {
backgroundColor = .clear
isOpaque = false
addSubview(trackingView)
}
Expand Down
3 changes: 2 additions & 1 deletion Sources/DPCharts/Views/DPLineChartView/DPLineChartView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,8 @@ open class DPLineChartView: DPCanvasView {
// MARK: - Initialization

func commonInit() {
isOpaque = false
backgroundColor = .clear
isOpaque = true
addSubview(touchCursor)
addSubview(trackingView)
}
Expand Down
1 change: 1 addition & 0 deletions Sources/DPCharts/Views/DPPieChartView/DPPieChartView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -329,6 +329,7 @@ open class DPPieChartView: UIView {
// MARK: - Initialization

func commonInit() {
backgroundColor = .clear
isOpaque = false
stackView.addArrangedSubview(donutTitleLabel)
stackView.addArrangedSubview(donutSubtitleLabel)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,7 @@ open class DPScatterChartView: DPCanvasView {
// MARK: - Initialization

func commonInit() {
backgroundColor = .clear
isOpaque = false
addSubview(trackingView)
}
Expand Down

0 comments on commit e9d6102

Please sign in to comment.