mirror of
https://github.com/Ranchero-Software/NetNewsWire.git
synced 2024-12-26 01:22:53 +01:00
26 lines
560 B
Swift
26 lines
560 B
Swift
//
|
|
// ArticleView.swift
|
|
// Multiplatform macOS
|
|
//
|
|
// Created by Maurice Parker on 7/8/20.
|
|
// Copyright © 2020 Ranchero Software. All rights reserved.
|
|
//
|
|
|
|
import SwiftUI
|
|
import Articles
|
|
|
|
struct ArticleView: NSViewControllerRepresentable {
|
|
|
|
@EnvironmentObject private var sceneModel: SceneModel
|
|
|
|
func makeNSViewController(context: Context) -> WebViewController {
|
|
let controller = WebViewController()
|
|
controller.sceneModel = sceneModel
|
|
return controller
|
|
}
|
|
|
|
func updateNSViewController(_ controller: WebViewController, context: Context) {
|
|
}
|
|
|
|
}
|