From ec58ec8a1be2fae689ae9d45858fc0baba0d8be5 Mon Sep 17 00:00:00 2001 From: Issa Mansour Date: Sun, 19 Sep 2021 10:36:41 -0400 Subject: [PATCH] Fixed console warning message "ignoring singular matrix: ProjectionTransform(m11: 5e-324, m12: 0.0, m13: 0.0, m21: 0.0, m22: 5e-324, m23: 0.0, m31: 100.0, m32: 100.0, m33: 1.0)" when dealing with PieChart by modifying scale effect --- Sources/SwiftUICharts/Charts/PieChart/PieChartCell.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/SwiftUICharts/Charts/PieChart/PieChartCell.swift b/Sources/SwiftUICharts/Charts/PieChart/PieChartCell.swift index f733bcd7..197ba0ae 100644 --- a/Sources/SwiftUICharts/Charts/PieChart/PieChartCell.swift +++ b/Sources/SwiftUICharts/Charts/PieChart/PieChartCell.swift @@ -47,7 +47,7 @@ public struct PieChartCell: View { path .fill(self.accentColor.linearGradient(from: .bottom, to: .top)) .overlay(path.stroke(self.backgroundColor, lineWidth: (startDeg == 0 && endDeg == 0 ? 0 : 2))) - .scaleEffect(self.show ? 1 : 0) + .scaleEffect(self.show ? 1 : 0.01) .animation(Animation.spring().delay(Double(self.index) * 0.04)) .onAppear { self.show = true