Skip to content

Commit 0bab4d8

Browse files
committed
Fixing disappearing chart on rotation.
Fixes the issue @CrushingT1D saw
1 parent 57445d6 commit 0bab4d8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Loop/Views/ChartContentView.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ class ChartContentView: UIView {
1515

1616
if chartView == nil || chartView!.frame != bounds {
1717
chartView = chartGenerator?(bounds)
18+
} else if chartView!.superview == nil {
19+
addSubview(chartView!)
1820
}
1921
}
2022

0 commit comments

Comments
 (0)