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

Tag Color Deselecting On Removing Text #16

Open
manpreet444 opened this issue Mar 27, 2022 · 3 comments
Open

Tag Color Deselecting On Removing Text #16

manpreet444 opened this issue Mar 27, 2022 · 3 comments

Comments

@manpreet444
Copy link

Screen.Recording.2022-03-28.at.12.09.36.AM.mov
@BH102
Copy link

BH102 commented Sep 26, 2022

@manpreet444 Did you solve it? I have the same issue

@BH102
Copy link

BH102 commented Sep 26, 2022

I have solved it

The problem was when you delete a word between 2 spaces it will delete one space with the word without count it in the shouldChangeTextIn function then the replacementText count will not be correct, it will cause shifting all tags ranges.

The solution is really simple just set this property in UITextView to no

smartInsertDeleteType = .no

@Datt1994
Copy link
Owner

Hi @BH102,

I appreciate you solved this problem. Can you contribute to this repo by creating PR with this issue fix?

Thanks,
Datt

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

No branches or pull requests

3 participants