readium / swift-toolkit

A toolkit for ebooks, audiobooks and comics written in Swift
https://readium.org/mobile/
BSD 3-Clause "New" or "Revised" License
256 stars 101 forks source link

add `findElementLocator` #273

Open erikolsson opened 1 year ago

erikolsson commented 1 year ago

Hi!

Here's a rough implementation of what findElementLocator(at point: CGPoint) could look like. Not sure if there's a cleaner way to do the coordinate transformation in EPUBSpreadView.swift?

mickael-menu commented 1 year ago

Hi @erikolsson, are you still interested in getting this PR merged?

erikolsson commented 1 year ago

Hi @mickael-menu! I'm terribly sorry, I took another approach (wrote my own renderer in UIKit) and ran out of time! I will probably not have time to do these changes in the near future, but if someone else has the time, please feel free to make whatever changes you see fit to this PR!

mickael-menu commented 1 year ago

Alright, thanks for the heads-up. I might take over the PR once I have some leeway.