ChimeHQ / Neon

A Swift library for efficient, flexible content-based text styling
BSD 3-Clause "New" or "Revised" License
335 stars 18 forks source link

Add correct visible range calculation for TextKit 2 #42

Closed Wouter01 closed 9 months ago

Wouter01 commented 9 months ago

Previously, visibleTextRange would return the whole range when using TextKit 2. With this change, it will only return the actual visible text range.

mattmassicotte commented 9 months ago

This is great! I've been meaning to fix this for a long time.