Tweak API to stop web view controller rebuiding

This commit is contained in:
Maurice Parker 2020-07-16 11:51:33 -05:00
parent 14e1b7447f
commit e5bf13edca
2 changed files with 2 additions and 4 deletions

View File

@ -11,10 +11,8 @@ import Articles
struct ArticleContainerView: View {
@EnvironmentObject private var sceneModel: SceneModel
@ViewBuilder var body: some View {
ArticleView(sceneModel: sceneModel)
ArticleView()
.modifier(ArticleToolbarModifier())
}

View File

@ -11,7 +11,7 @@ import Articles
struct ArticleView: NSViewControllerRepresentable {
var sceneModel: SceneModel
@EnvironmentObject private var sceneModel: SceneModel
func makeNSViewController(context: Context) -> WebViewController {
let controller = WebViewController()