Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Line detection and per line cursor movement. #181

Open
martindufort opened this issue Jun 13, 2024 · 4 comments
Open

Line detection and per line cursor movement. #181

martindufort opened this issue Jun 13, 2024 · 4 comments
Labels
feature New feature or request

Comments

@martindufort
Copy link
Contributor

martindufort commented Jun 13, 2024

I'm starting to integrate RTK into our iPhone app (using UIKit) and I was wondering if we have access to line-associated functionality.

Would like the RichTextPresenter protocol to provide me with:

  • selectCurrentLine
  • rangeForPreviousLine
  • rangeForCurrentLine
  • rangeForNextLine

Having those would allow us to interact with the RTK to easily move the cursor to the previous / next line positions?
Can I do this with the current functional set?

@danielsaidi
Copy link
Owner

Hi @martindufort

There are unfortunately no such features in the SDK today.

@danielsaidi danielsaidi added the feature New feature or request label Jun 13, 2024
@martindufort
Copy link
Contributor Author

Will test things out and potentially issue a PR for this.

Would adding this into RichTextPresenter protocol be the proper approach?

LMK

@danielsaidi
Copy link
Owner

Sounds great, I'd love to take a look at it!

I'm once again thinking that I'd like to rewrite this library once again from scratch, while targeting iOS 17 and macOS 14...but I also realize that it will take a LOT of time. I should probably look at TextKit2 first.

@martindufort
Copy link
Contributor Author

TextKit2 is now almost mandatory given the new Writing Tools requirements.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants