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

Fix crash iOS Label measure for RTL languages #15605

Merged
merged 4 commits into from
Nov 16, 2022
Merged

Fix crash iOS Label measure for RTL languages #15605

merged 4 commits into from
Nov 16, 2022

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
4 participants