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