NetNewsWire/Multiplatform/macOS/Article/ArticleView.swift

29 lines
600 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
var sceneModel: SceneModel
2020-07-12 01:22:47 +02:00
var articles: [Article]
2020-07-08 17:20:04 +02:00
func makeNSViewController(context: Context) -> WebViewController {
let controller = WebViewController()
controller.sceneModel = sceneModel
2020-07-12 01:22:47 +02:00
controller.articles = articles
2020-07-08 17:20:04 +02:00
return controller
}
func updateNSViewController(_ uiViewController: WebViewController, context: Context) {
}
2020-07-02 22:30:50 +02:00
}