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

Conversation

jfversluis
Copy link
Member

Description of Change

As of iOS 16 (or probably more likely; Xcode 14) a NaN value would occur when measuring this label size. To account for that, detect NaN values and set it to an unknown value so it will recalculate.

Issues Resolved

API Changes

None

Platforms Affected

  • iOS

Behavioral/Visual Changes

None

Before/After Screenshots

Not applicable

Testing Procedure

PR Checklist

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

@jfversluis jfversluis changed the title Update UIViewExtensions.cs Fix crash iOS Label measure for RTL languages Nov 15, 2022
@jadhas8
Copy link

jadhas8 commented Apr 21, 2023

Hi @jfversluis , This PR is fixing the crash for some of the labels but for some labels where the Element is null, the size request is not gettig calculated. Hece the app is crashing even in latest version. This would be the edge case scenario but importat to handle as app is still crashing on iOS 16.

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] NaN is not a valid value for width, crash < 1s [Bug] Xamarin forms app crashes for Arabic in iOS 16 in production : High priority issue

4 participants