3 ms·
Even the first iPhone OS used WebView for all text inputs before they implemented "native" components. Literally, every text control was a WebView. Turns out th
by dchest 4y ago
Even the first iPhone OS used WebView for all text inputs before they implemented "native" components. Literally, every text control was a WebView. Turns out they are really great for text editing :)
- occoder 4y agoI 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.
- dchest 4y agoThe source is Ken Kocienda who developed it: https://twitter.com/kocienda/status/1400484168199401477 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.
- dbbk 4y agoYeah 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
- occoder 4y agoThanks 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.
- deleted 4y ago[deleted]