Post

Replies

Boosts

Views

Activity

Reply to IOS 18 uses TextKit to calculate the height of attributed strings, but the calculation is inaccurate.
I'm a bit confused about the answer being marked as accepted. Does this mean there wasn't a discrepancy between iOS 18 and earlier versions? I'm asking because we're experiencing a bug where the UITextView does not always resize its height correctly when we add an attributed string. We had an old hack that involved disabling/enabling isScrollEnabled, but this stopped working with iOS 18. Might not be related at all, but this post is the closest I've come to something that could be.
2w