scribe-org / Scribe-iOS

iOS app with keyboards for language learners
https://apps.apple.com/app/scribe-language-keyboards/id1596613886
GNU General Public License v3.0
128 stars 78 forks source link

SwiftLint: Fix todo throughout codebase #424

Open andrewtavis opened 5 months ago

andrewtavis commented 5 months ago

Terms

Description

Work for this issue would remove todo as a disabled rule from .swiftlint.yml and fix all errors for it in the codebase.

Docs for todo are here: https://realm.github.io/SwiftLint/todo.html

We'd know that this is successful if our SwiftLint pull request workflow passes on the pull request for the change 🚀

Contribution

I'll work on this one by making issues to account for all todos that include information on what's to be done and the location of the original todo 😊

christianbilodeau commented 3 weeks ago

Hi, I looked into this one, just to confirm, all the TODOs are of the format:

add < key > to rightKeyChar if the keyboard has 4 rows

I'm assuming "4 rows" refers to the "floating keyboard" feature on iPad, which allows the user to minimise the keyboard and move it around the screen? It's the only keyboard format where I've seen the need for the correct popup on right key characters.

Thanks!

andrewtavis commented 3 weeks ago

Hey @christianbilodeau 👋 I'm thinking four rows is actually something to do with whether the numbers row is present or not, actually. Thanks for your consideration of this! Would be great to get some support making these issues and getting rid of the todos :)

christianbilodeau commented 3 weeks ago

Hello again @andrewtavis, the add "p" to rightKeyChar if the keyboard has 4 rows comments might be non-issues, as seen at least on my iPad mini iOS 18 simulator. The "p" key doesn't appear at the very right of the screen and therefore the current popup makes sense as it is (it appears to be cropped at the top, but that's a different issue):

Screenshot 2024-10-01 at 15 18 36

However, I did notice some keys having the wrong popup when the keyboard has 5 rows (big iPad).

\ Should be left:

Screenshot 2024-10-01 at 15 20 45

* Should be right:

Screenshot 2024-10-01 at 15 21 11

Same issue for the symbol keys at the same positions. Happy to create issues for these if you confirm.

andrewtavis commented 3 weeks ago

This is great, @christianbilodeau! Yes, let's definitely make that issue and then we can tackle that 😊 Thanks so much for the investigations here!