ChimeHQ / Neon

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

Add correct visible range calculation for TextKit 2 #42

Closed Wouter01 closed 6 months ago

Wouter01 commented 6 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 6 months ago

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