mirror of
https://github.com/Ranchero-Software/NetNewsWire.git
synced 2025-01-11 09:14:06 +01:00
Tweak API to stop web view controller rebuiding
This commit is contained in:
parent
14e1b7447f
commit
e5bf13edca
@ -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())
|
||||
}
|
||||
|
||||
|
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user