AppPear / ChartView

ChartView made in SwiftUI
MIT License
5.26k stars 645 forks source link

Fixed console warning message "ignoring singular matrix" when dealing with PieChart #211

Open IssaMansour opened 2 years ago

IssaMansour commented 2 years ago

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

Description

When dealing with PieChart, we have this warning message in console "ignoring singular matrix". This is an issue when dealing with ScaleEffect modifier. https://stackoverflow.com/questions/63630107/swiftui-unknown-process-name-cgaffinetransforminvert-singular-matrix-error

Motivation and Context

This is just a simple modification to avoid useless warning spamming messages on the console

How Has This Been Tested?

Testing on Xcode 12.4 / Project build on iOS 14.1

Screenshots (if appropriate):

Screenshot of the issue:

Screen Shot 2021-09-19 at 10 57 27 AM

Types of changes

Checklist: