Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 1 commit into
base: new-version-beta2
Choose a base branch
from

Conversation

IssaMansour
Copy link

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?

  • A fork was made from ChartView.
  • The fixed was made on the branch new-version-beta2
  • Added this fork on a SwiftUI project that has the issue with Swift Package Manager
  • No more warning messages and PieChart works like before

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

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Non-functional change (Updating Documentation, CI automation, etc..)

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.

…ansform(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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants