gonzalezreal / swift-markdown-ui

Display and customize Markdown text in SwiftUI
MIT License
2.24k stars 266 forks source link

Table rendering issue on iOS15 #277

Closed syegin closed 7 months ago

syegin commented 7 months ago

Describe the bug Tables are not being rendered properly on iOS 15, it just renders the raw markdown text. looks working fine on iOS 16 and 17.

Checklist

Steps to reproduce

  1. Realized this issue on my project. But it's also happening for demo project on main branch. (Deployment target for demo project is 16, so i downgraded it to 15 and commented out everything giving error so that i can run the project.)

Expected behavior Should be able to render tables on iOS 15.

Screenshots Simulator Screenshot - iPhone SE (3rd generation) - 2023-11-23 at 11 33 49

Version information

syegin commented 7 months ago

Ok now i've just seen the note, tables are not supported on iOS 15. So my question what is the reason there is no support, is it causing any issue while rendering?

gonzalezreal commented 7 months ago

Hi @syegin,

Thanks for raising this issue. This is a known limitation, even documented in the Minimum Requirements section of the README.

The current table implementation uses a Grid view, only available from iOS 16, macOS 13, tvOS 16, and watchOS 9.

I am experimenting with other approaches to lay out the text that may enable table rendering on iOS 15 and fix other issues. But I can't promise anything at the moment.

max-lfeng commented 3 months ago

Hi @syegin,

Thanks for raising this issue. This is a known limitation, even documented in the Minimum Requirements section of the README.

The current table implementation uses a Grid view, only available from iOS 16, macOS 13, tvOS 16, and watchOS 9.

I am experimenting with other approaches to lay out the text that may enable table rendering on iOS 15 and fix other issues. But I can't promise anything at the moment.

hey gonzalezreal, thanks for providing a great tools to render markdown, there any solution to enable table rendering on iOS 15?