3 ms·
For me, as a long-time Android app developer, it was interesting to see how Apple approaches things somewhat differently and more thoughtfully. On Android, you
by grishka 3y ago
For me, as a long-time Android app developer, it was interesting to see how Apple approaches things somewhat differently and more thoughtfully.
On Android, you basically have the Layout class (and its subclasses) that does everything related to both layout and rendering, and TextView which implements some of the editing/selection logic. The only difference between EditText and TextView is that EditText enables that editing functionality already present in TextView. The problem with this rather monolithic approach (and poor APIs) is that if you need more control over how your app renders text, you're out of luck. Want to get at the individual glyphs after they've been laid out for example? Nope, sorry.