2020-07-02 22:30:50 +02:00
|
|
|
//
|
|
|
|
// ArticleView.swift
|
2020-07-08 17:20:04 +02:00
|
|
|
// Multiplatform macOS
|
2020-07-02 22:30:50 +02:00
|
|
|
//
|
2020-07-08 17:20:04 +02:00
|
|
|
// Created by Maurice Parker on 7/8/20.
|
2020-07-02 22:30:50 +02:00
|
|
|
// Copyright © 2020 Ranchero Software. All rights reserved.
|
|
|
|
//
|
|
|
|
|
|
|
|
import SwiftUI
|
2020-07-07 04:14:05 +02:00
|
|
|
import Articles
|
2020-07-02 22:30:50 +02:00
|
|
|
|
2020-07-09 05:27:59 +02:00
|
|
|
struct ArticleView: NSViewControllerRepresentable {
|
2020-07-08 17:20:04 +02:00
|
|
|
|
2020-07-16 18:51:33 +02:00
|
|
|
@EnvironmentObject private var sceneModel: SceneModel
|
2020-07-08 17:20:04 +02:00
|
|
|
|
|
|
|
func makeNSViewController(context: Context) -> WebViewController {
|
|
|
|
let controller = WebViewController()
|
2020-07-10 01:44:51 +02:00
|
|
|
controller.sceneModel = sceneModel
|
2020-07-08 17:20:04 +02:00
|
|
|
return controller
|
|
|
|
}
|
|
|
|
|
2020-07-16 18:14:05 +02:00
|
|
|
func updateNSViewController(_ controller: WebViewController, context: Context) {
|
2020-07-08 17:20:04 +02:00
|
|
|
}
|
|
|
|
|
2020-07-02 22:30:50 +02:00
|
|
|
}
|