Hackers icon indicating copy to clipboard operation
Hackers copied to clipboard

IOS 16? Long comments are truncated

Open ssuess opened this issue 3 years ago • 2 comments

I recently installed the beta for iOS 16 and have noticed several times that long comments seem to be truncated, ending mid sentence. (Checking other apps like HACK or the web version shows the full comments).

ssuess avatar Jun 12 '22 04:06 ssuess

A console warning suggests this is caused by iOS 16 falling back to TextKit 1 rendering because of the hit test code for links in comments. But even forcing TextKit 1 for layout doesn't seem to fix this issue in beta 1. Does anyone know if there's an alternative with TextKit 2 to replace layoutManager. characterIndex(for:in:fractionOfDistanceBetweenInsertionPoints:) from TextKit 1?

weiran avatar Jun 20 '22 12:06 weiran

iOS 16 beta 2 partially fixes this - it no longer truncates comments when falling back to TextKit 1 but there are still glitchy layout changes.

weiran avatar Jun 25 '22 08:06 weiran

I just tried this on the latest beta 5 and it seems fully resolved now.

weiran avatar Aug 19 '22 13:08 weiran

I'm on 16.1 (20B5045d) and it looks like long URLs are getting truncated and tapping on them navigates to the truncated URL instead of the actual one.

Example article: https://news.ycombinator.com/item?id=32911299

JeffreyCA avatar Sep 20 '22 20:09 JeffreyCA