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

[iOS] Fix setting text decorations and text at the same time and respect changes #14907

Merged
merged 1 commit into from
Nov 23, 2021

Conversation

jfversluis
Copy link
Member

Description of Change

Instead of using the UILabel.Text property, we now only use the UILabel.AttributedText property. This makes sure that no formatting or markup is left behind. The label is drawn differently depending on which property you set. This change is the last reference to UILabel.Text.

We should test very well if this doesn't break anywhere!11!!

Issues Resolved

API Changes

None

Platforms Affected

  • iOS

Behavioral/Visual Changes

None

Before/After Screenshots

Not applicable

Testing Procedure

Go to issue 11954 and follow the instructions. Label should successfully enable/disable strikethrough

PR Checklist

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

@jfversluis jfversluis changed the title Add repro + fix [iOS] Fix setting text decorations and text at the same time and respect changes Nov 18, 2021
@jsuarezruiz jsuarezruiz merged commit 277e710 into 5.0.0 Nov 23, 2021
@jsuarezruiz jsuarezruiz deleted the fix-11954 branch November 23, 2021 17:39
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 label can't un-set text decorations when updating text at the same time
2 participants