Hacker News new | ask | show | jobs
by occoder 1263 days ago
I don't believe this is true.

Where did you get that impression? Do you have a source?

A WebView may or may not be great for text editing, but it'd definitely be overkill for simple text input. The first iPhone was severely resource constrained, I can't imagine it had the luxury of using a WebView for each and every text input.

1 comments

The source is Ken Kocienda who developed it: https://twitter.com/kocienda/status/1400484168199401477

Of course, it was not the current multiprocess WKWebView, which requires more resources, and not the legacy UIWebView directly, more likely some of its internals.

Thanks for the link!

That's truly surprising! I stand corrected.

To quote two of the tweets:

> Web browsing on the iPhone was always on the feature list, so WebKit would be there, and the editing code came along with it. We needed to decide how other styled text would work, like in Notes. Should we bring over the AppKit text system?

> Eventually, we decided not to. We were so pressed for memory that fitting two styled text systems was judged too much, so I used WebKit to back UITextField and UITextView. I’m pretty sure it stayed that way until iOS 7.

Yeah I remember this because you would sometimes get in a weird situation where it would fail to process the CSS, so you'd get text in Times New Roman