Skip to content
This repository has been archived by the owner on May 1, 2024. It is now read-only.

Fix NRE when using Line on iOS with Xcode 13.2 #14993

Merged
merged 2 commits into from
Jan 10, 2022
Merged

Fix NRE when using Line on iOS with Xcode 13.2 #14993

merged 2 commits into from
Jan 10, 2022

Conversation

jfversluis
Copy link
Member

Description of Change

As of Xcode 13.2 something seems changed in the Apple iOS APIs that causes a NRE on our side. Not sure if this fix is perfect. I wonder if something in CGAffineTransform is changed that doesn't accept invalid values anymore, where it did before, or maybe something in the iOS APIs changed in the measurements which causes invalid values to come in in the first place.

Any views on that are appreciated :)

Issues Resolved

API Changes

None

Platforms Affected

  • iOS

Behavioral/Visual Changes

No more crash when using a Line

Before/After Screenshots

Not applicable

Testing Procedure

Go to the Shapes Gallery and open the Line Gallery. If it doesn't crash and you can see lines, then it is all OK!

PR Checklist

  • Targets the correct branch
  • Tests are passing (or failures are unrelated)

@jsuarezruiz
Copy link
Contributor

This PR also fixes #15026

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug] [iOS] Rendering Line shape crashes the app when building using iOS SDK 15.2
2 participants