NetNewsWire/Multiplatform/iOS/Article/ArticleView.swift

35 lines
769 B
Swift
Raw Normal View History

2020-07-02 22:30:50 +02:00
//
// ArticleView.swift
// Multiplatform iOS
2020-07-02 22:30:50 +02:00
//
// Created by Maurice Parker on 7/6/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
final class ArticleView: UIViewControllerRepresentable {
var sceneModel: SceneModel
var article: Article
init(sceneModel: SceneModel, article: Article) {
self.sceneModel = sceneModel
self.article = article
}
func makeUIViewController(context: Context) -> ArticleViewController {
let controller = ArticleViewController()
sceneModel.articleManager = controller
controller.sceneModel = sceneModel
controller.currentArticle = article
return controller
}
func updateUIViewController(_ uiViewController: ArticleViewController, context: Context) {
}
2020-07-02 22:30:50 +02:00
}