We noticed that the character Right Double Quotation Mark (u+201d) is behaving differently in IOS 14 than in earlier IOS versions when using lineBreakMode = .byWordWrapping.
When wrapping the phrase "”text in a quote”" the "”" and "text" is separated in IOS 14, which might leave the starting quotation mark at the end of a line, which is not the case in IOS 13.
The character Quotation Mark (u+22) behaves as expected and consistent in both IOS 14 and IOS 13.
Is there a way to include characters to word boundaries, or a setting we might have missed?
Actual:
Expected 1:This is a text with a quote: ”
text in a quote”
Expected 2:This is a text with a quote:
”text in a quote”
This is a text with a quote: ”text
in a quote”
As far as I know, there are no such settings.Is there a way to include characters to word boundaries, or a setting we might have missed?
By the way, Right Double Quotation Mark (u+201d) is intended to paired with Left Double Quotation Mark (u+201c).
With replacing the left double quote to U+201C, you can see something like this:
In my opinion, this seems to be the right behavior, and the wrong behavior in older iOS versions is fixed in iOS 14.This is a text with a quote:
“text in a quote”
Anyway, if this change is harmful for your app, you should send a feedback to Apple.
Until some solution is found, you may need to pre-process the text before it is broken into words by iOS.