Something like this:
var result = [];
body = document.body;
sel = window.getSelection(); range = document.createRange(); range.selectNodeContents(body); sel.removeAllRanges(); sel.addRange(range);
selString = sel.toString();
// Call completion to finish completion(selString);
It was pretty hilarious to me that for so many years the keyboard on iOS only had CAPITAL letters. No matter the state of the shift key, the letters on the keyboard just stayed the same. After many years they finally figured it out, but it's one example of many about how Apple just doesn't have the great UX people claim they do.
"Is that a Play button because it's currently playing, or because it is paused/stopped, and will play when I tap it?"
"Is Bluetooth on or off? That depends if Dark Mode on?"
I end up tapping the control 3 times or so. The latter dilemma could sometimes be worked out by surveying the state of every surrounding control, but tunnel vision and impatience keep winning.
In general, IMO they are better than most companies but far from perfect. Maybe 80th percentile. I’m hard pressed to think of a top 10 tech company that’s better. Lots of smaller companies are.
Come on. OSX was a paradigm shift in desktop usability and intuitive design.
My 85 year old grandpa asked me about 20 years ago how he should go about learning how to use computers. We were a windows family at home but I was using Macs in school and OSX was relatively new and I thought it blew Windows out of the water as far as usability.
Didn’t take long for my grandpa to be sending me emails and news links, and becoming an overall competent and comfortable computer user, in his late 80s, and I credit that to Apple’s fantastic design.
I think maybe we forget how using Windows 98 and XP was day-to-day.
do you have a source for that?
What drives me insane though, is double tapping a word is supposed to select that word. But I think starting in iOS 18 it started selecting the word and a random amount of surrounding words, but only about half the time. I couldn't tell you what it could possibly be trying to do but it's maddening.
But I swear if that's what they're trying to do here, I've never seen it work properly once. It's always just a random substring of the sentence.