Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Better SwiftUI Support #79

Open
L1cardo opened this issue Sep 24, 2020 · 5 comments
Open

Better SwiftUI Support #79

L1cardo opened this issue Sep 24, 2020 · 5 comments

Comments

@L1cardo
Copy link

L1cardo commented Sep 24, 2020

Is it possible to let Highlightr support SwiftUI better?

@conorgriffin
Copy link

@L1cardo does it even work in SwiftUI as it is? I'd appreciate an example of how you use it now

@L1cardo
Copy link
Author

L1cardo commented Nov 20, 2020

@L1cardo does it even work in SwiftUI as it is? I'd appreciate an example of how you use it now

Actually I didn't use this in my project.
I recommend you two other options:
https://github.com/Pictarine/CodeMirror-SwiftUI
https://github.com/dwarvesf/CodeViewer

@conorgriffin
Copy link

Neither of those seem to work on Big Sur, both throw errors like these

2020-11-26 20:44:12.080748+0000 Test[41128:2780002] -[WKWebView _setDrawsTransparentBackground:] is deprecated and should not be used.
2020-11-26 20:44:12.119370+0000 Test[41128:2780002] CDN - client insert callback function client = 0 type = 17 function = 0x7fff2c11382d local_olny = false
2020-11-26 20:44:12.119445+0000 Test[41128:2780002] CDN - client setup_remote_port
2020-11-26 20:44:12.119504+0000 Test[41128:2780002] CDN - Bootstrap Port: 1799
2020-11-26 20:44:12.119713+0000 Test[41128:2780002] CDN - Remote Port: 32271 (com.apple.CoreDisplay.Notification)
2020-11-26 20:44:12.119774+0000 Test[41128:2780002] CDN - client setup_local_port
2020-11-26 20:44:12.119818+0000 Test[41128:2780002] CDN - Local Port: 32003
2020-11-26 20:44:12.257456+0000 Test[41128:2780002] [Process] 0x7fefb1059820 - [pageProxyID=5, webPageID=6, PID=0] WebPageProxy::processDidTerminate: (pid 0), reason 3
2020-11-26 20:44:12.257662+0000 Test[41128:2780002] [Loading] 0x7fefb1059820 - [pageProxyID=5, webPageID=6, PID=0] WebPageProxy::dispatchProcessDidTerminate: reason = 3
2020-11-26 20:44:12.322629+0000 Test[41128:2780002] [Process] 0x7fefb1059820 - [pageProxyID=5, webPageID=6, PID=0] WebPageProxy::processDidTerminate: (pid 0), reason 3
2020-11-26 20:44:12.332905+0000 Test[41128:2780002] [Loading] 0x7fefb1059820 - [pageProxyID=5, webPageID=6, PID=0] WebPageProxy::dispatchProcessDidTerminate: reason = 3
2020-11-26 20:44:12.332961+0000 Test[41128:2780002] [Process] 0x7fefb1059820 - [pageProxyID=5, webPageID=6, PID=0] WebPageProxy::tryReloadAfterProcessTermination: process crashed and the client did not handle it, not reloading the page because we reached the maximum number of attempts

@L1cardo
Copy link
Author

L1cardo commented Dec 4, 2020

Neither of those seem to work on Big Sur, both throw errors like these


2020-11-26 20:44:12.080748+0000 Test[41128:2780002] -[WKWebView _setDrawsTransparentBackground:] is deprecated and should not be used.

2020-11-26 20:44:12.119370+0000 Test[41128:2780002] CDN - client insert callback function client = 0 type = 17 function = 0x7fff2c11382d local_olny = false

2020-11-26 20:44:12.119445+0000 Test[41128:2780002] CDN - client setup_remote_port

2020-11-26 20:44:12.119504+0000 Test[41128:2780002] CDN - Bootstrap Port: 1799

2020-11-26 20:44:12.119713+0000 Test[41128:2780002] CDN - Remote Port: 32271 (com.apple.CoreDisplay.Notification)

2020-11-26 20:44:12.119774+0000 Test[41128:2780002] CDN - client setup_local_port

2020-11-26 20:44:12.119818+0000 Test[41128:2780002] CDN - Local Port: 32003

2020-11-26 20:44:12.257456+0000 Test[41128:2780002] [Process] 0x7fefb1059820 - [pageProxyID=5, webPageID=6, PID=0] WebPageProxy::processDidTerminate: (pid 0), reason 3

2020-11-26 20:44:12.257662+0000 Test[41128:2780002] [Loading] 0x7fefb1059820 - [pageProxyID=5, webPageID=6, PID=0] WebPageProxy::dispatchProcessDidTerminate: reason = 3

2020-11-26 20:44:12.322629+0000 Test[41128:2780002] [Process] 0x7fefb1059820 - [pageProxyID=5, webPageID=6, PID=0] WebPageProxy::processDidTerminate: (pid 0), reason 3

2020-11-26 20:44:12.332905+0000 Test[41128:2780002] [Loading] 0x7fefb1059820 - [pageProxyID=5, webPageID=6, PID=0] WebPageProxy::dispatchProcessDidTerminate: reason = 3

2020-11-26 20:44:12.332961+0000 Test[41128:2780002] [Process] 0x7fefb1059820 - [pageProxyID=5, webPageID=6, PID=0] WebPageProxy::tryReloadAfterProcessTermination: process crashed and the client did not handle it, not reloading the page because we reached the maximum number of attempts

I haven't tried them on Big Sur yet, but they worked well on Catalina

@helje5
Copy link
Contributor

helje5 commented Oct 22, 2021

I also got one: https://github.com/ZeeZide/CodeEditor, which seems to work fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants