adamhartford / SwiftR

Swift client for SignalR (iOS and Mac)
MIT License
174 stars 74 forks source link

Mac Catalyst support! #130

Open Rashesh-Bosamiya opened 4 years ago

Rashesh-Bosamiya commented 4 years ago

I am trying to port my iOS Application to macOS Application using Xcode 11's new Mac Catalyst tool. All things seems to working fine except SwiftR library.

Basically, primary problem is SwiftR uses UIWebView, that is certainly deprecated in Mac Catalyst tool.

So, requesting to upgrade this library to support Mac Catalyst tool.

Thanks, Rashesh

TahirTahir commented 4 years ago

Hi @Rashesh-Bosamiya Did you manage to find a solution to the UIWebView Issue?

Rashesh-Bosamiya commented 4 years ago

Not yet officially

But I have manually commented out particular code & migrated to WKWebView

TahirTahir commented 4 years ago

I can't seem to find the WKWebview equivalent of this line: let msg = webView.stringByEvaluatingJavaScript(from: "readMessage('(id)')")! its inside this function: shouldHandleRequest(_ request: URLRequest) -> Bool{}