4 ms·
Not necessarily for a Swift project, but your experience makes me wonder about the current web API for highlighting spans of text. https://github.com/Microsoft
by watersb 5y ago
Not necessarily for a Swift project, but your experience makes me wonder about the current web API for highlighting spans of text.
https://github.com/MicrosoftEdge/MSEdgeExplainers/blob/main/highlight/explainer.md https://github.com/MicrosoftEdge/MSEdgeExplainers/blob/main/...
Complicated...
- 1_player 5y agoSeems kinda straightforward to me, especially compared to the complexity of other web APIs? It's just a couple classes and functions. What am I missing? It's not easy to read, but web specs are always written in over complicated and overly detailed prose that might as well have been written by a lawyer.
- DantesKite 5y agoI'm sure it's relatively easy for someone experienced with programming. I wrote the program back when I was learning Swift for the first time. There's a lot of counterintuitive shapes and graphics and knowledge you need. It's not linear algebra "difficult", but it does accumulate, until you're wondering why you're spending so much time drawing rectangles over text. I enjoyed the project, but it was definitely rife with a lot of strange behavior layered on top of each other. And Apple Documentation is a bit of a nightmare and basically useless in most cases.
- DantesKite 5y agoMan that gave me flashbacks… Ludicrously difficult. I thought there would be a library for it or something. I should make it open-source. I spent so much time on it and it doesn’t see much use. And I’m sure a lot of programmers could use it in a project somewhere.