RakuyoKit / JSONPreview

🎨 A view that previews JSON in highlighted form, it also provides the ability to format and collapse nodes.
MIT License
65 stars 13 forks source link

Improve support for tvOS #18

Closed rakuyoMo closed 3 months ago

rakuyoMo commented 3 months ago

Currently, JSONPreview has several problems on the tvOS platform:

  1. UITextView cannot be edited on tvOS.
  2. Line numbers and JSON lines cannot be aligned.

Because of the first problem, even if I find a way to align the line numbers, I cannot implement the folding and unfolding functions of json on tvOS (the purpose of aligning the line numbers is to accurately obtain which line of json the user clicked).

Therefore, the following changes have been made to this pull request:

  1. Mark collapse, expand, and click functions are not available on tvOS.
  2. Line numbers are hidden by default.
rakuyoMo commented 3 months ago

In addition, this pull request also adjusted the directory structure of the demo.