Implement Read and Star button functionality

This commit is contained in:
Maurice Parker
2020-07-09 18:44:51 -05:00
parent 3e61c7044b
commit 2d57945e98
12 changed files with 166 additions and 154 deletions

View File

@@ -57,7 +57,7 @@ class WebViewController: UIViewController {
}
}
var articleModel: ArticleModel?
var sceneModel: SceneModel?
weak var delegate: WebViewControllerDelegate?
private(set) var article: Article?
@@ -372,9 +372,10 @@ extension WebViewController: WKScriptMessageHandler {
case MessageName.imageWasClicked:
imageWasClicked(body: message.body as? String)
case MessageName.showFeedInspector:
if let webFeed = article?.webFeed {
return
// if let webFeed = article?.webFeed {
// coordinator.showFeedInspector(for: webFeed)
}
// }
default:
return
}
@@ -449,7 +450,7 @@ private extension WebViewController {
return
}
articleModel?.webViewProvider?.dequeueWebView() { webView in
sceneModel?.webViewProvider?.dequeueWebView() { webView in
// Add the webview
webView.translatesAutoresizingMaskIntoConstraints = false