this post was submitted on 20 Dec 2023
5 points (100.0% liked)

Lemma - An iOS Lemmy client

402 readers
1 users here now

founded 1 year ago
MODERATORS
5
submitted 11 months ago* (last edited 11 months ago) by NightAuthor to c/lemma
 

Lets see if it happens at all with this post. When im typing, sometimes a bunch of text (a repeat of previously typed text) shows up after my cursor, but then goes away again if i keep typing. Except, sometimes all that text actually stays and i end up with weird double-speak in my comments. I’m gonna try and see that it takes to make it do it again. It seems to only happen when I’m tap typing (as opposed to swyping)

Seems it didnt want to actually do the part where it inserts the duplicates text.

ex1 ex2

top 5 comments
sorted by: hot top controversial new old
[–] gromdroid 2 points 11 months ago (1 children)

Thanks for reporting this! I’m aware of the problem and I’m actively looking for solutions, but so far I haven’t found one.

It seems to be related to the new iOS17 predictive typing, because most often the duplication of text will happen when iOS tries to predict the rest of a sentence.

I’ll keep looking for a solution, since it’s quite jarring. Will keep you posted (:

[–] NightAuthor 1 points 11 months ago (2 children)

I was thinking that was the issue, I first turned off auto-correct but the issue persisted. I’ve just now turned off “show predictions inline” and it seems to no longer be exhibiting the issue.

It’s particularly odd that I don’t recall having that issue in any other app. Is there something special about the way you’re formatting the text for that text field?

[–] gromdroid 2 points 11 months ago (1 children)

Thanks to your suggestion I found a way to disable the predictive text feature in the markdown editor. While this is not the perfect solution, it does at least seem to fix the issue for now.

I’ll keep looking for a better solution, but in the meantime I’ll try to have a new app update ready in the coming week that includes this temporary fix :D

[–] NightAuthor 1 points 11 months ago
[–] gromdroid 2 points 11 months ago

I think it’s a problem related to React Native. The package that I use for the markdown editing is a native iOS package, so I had to write a bridge for the package to be able to use it in my app.

Avelon uses the same package for example, but there it works fine as far as I know. Avelon is however a completely native app, therefor I have the suspicion that the problem is related to the bridge that I wrote.

I already tried to isolate the bridge, to see if any other code in my app is interfering but that didn’t seem to be the case. My plan is to write a dummy application somewhere this week, to see if the package does work out of the box in a native app to make sure that my suspicion is right.

I’m not too familiar with native iOS development though, so that’s why it’s all taking a bit longer.

It is however very helpful to hear that the prediction setting seemed to resolve it in your case. Bit by bit we’ll get closer to fix this 🤞