I'm new to Swift programing and wish to create an app with SwiftUI. This is what I wish to achieve:
that is, a text field that has real-time syntax highlighting for LaTeX, and then the content of which is being rendered by mathjax and shown in a web view.
I did some search on this site and on GitHub, only to find related codes are mostly in Objective-C or Swift 4.x (such as this), and none of them has interface made with SwiftUI. However, during my research I found one approach that might work. It seems that with the JavaScriptCore framework one may able to use of highlight.js to make syntax highlighting (like what Highlightr done there, but its codes are very complex). I'm convinced by this approach because if one can use highlight.js to achieve code highlighting, then in a similar way one should be able to use other JavaScripts like mathjax.js to achieve other features.
Unfortunately, since I'm new to Swift and hence SwiftUI, I have no idea where to begin with. Could anyone kindly offer me some hints? (Any help is welcome, not necessarily use JavaScriptCore)

