NetNewsWire/Multiplatform/macOS/Article/ArticleView.swift

26 lines
560 B
Swift
Raw Normal View History

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
import Articles
2020-07-02 22:30:50 +02:00
struct ArticleView: NSViewControllerRepresentable {
2020-07-08 17:20:04 +02:00
@EnvironmentObject private var sceneModel: SceneModel
2020-07-08 17:20:04 +02:00
func makeNSViewController(context: Context) -> WebViewController {
let controller = WebViewController()
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
}