this post was submitted on 01 May 2024
4 points (100.0% liked)
Arctic
358 readers
1 users here now
Arctic is a Lemmy client for iOS built on pure Swift. It currently supports iOS 15+ and Lemmy v0.17+
Get the latest version on TestFlight, or check it out on the AppStore.
If you would like to support Arctic’s development, feel free to Buy Me A Coffee
founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
This is actually an issue I was aware of. Unfortunately textview on iOS does not have any native support for tables like the MacOS counterpart does. For tables in Arctic, I rolled my own using tab breaks for the layout, and some custom drawing for the background. This solution does not allow word wrapping within columns in the table, nor does text alignment work correctly when using tabs.
In the end, what I’ll end up doing for this, is embedding a custom view within the text view for rendering tables. This will come later as I plan to include this in a larger text rendering update that will allow for in-line media rendering, link previews and improved code and block quotes etc.
This would be a relatively trivial task using SwiftUI, but in UIKit, it’s going to take me some time to develop a custom solution.
You’re probably already aware of this, but since I occasionally use Mlem as well (in case I need to copy and paste between two different spots) so I checked there and it looks like their solution is to just scroll the table back-and-forth, which isn’t great, but it is another alternative. I like your solution, and appreciate the work you do. Thanks so much.