Skip to content

Commit

Permalink
Fix on appear animation.
Browse files Browse the repository at this point in the history
  • Loading branch information
willdale committed Apr 21, 2021
1 parent 259dcec commit 83e4785
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,14 +67,14 @@ internal struct YAxisPOI<T>: ViewModifier where T: CTLineBarChartDataProtocol {
content
marker
valueLabel
.animateOnAppear(using: chartData.chartStyle.globalAnimation) {
self.startAnimation = true
}
.animateOnDisappear(using: chartData.chartStyle.globalAnimation) {
self.startAnimation = false
}
} else { content }
}
.animateOnAppear(using: chartData.chartStyle.globalAnimation) {
self.startAnimation = true
}
.animateOnDisappear(using: chartData.chartStyle.globalAnimation) {
self.startAnimation = false
}
}

var marker: some View {
Expand Down

0 comments on commit 83e4785

Please sign in to comment.