mirror of
https://github.com/Ranchero-Software/NetNewsWire.git
synced 2024-12-15 10:49:14 +01:00
34 lines
749 B
Swift
34 lines
749 B
Swift
//
|
|
// SidebarContainerView.swift
|
|
// NetNewsWire
|
|
//
|
|
// Created by Maurice Parker on 6/28/20.
|
|
// Copyright © 2020 Ranchero Software. All rights reserved.
|
|
//
|
|
|
|
import SwiftUI
|
|
|
|
struct SidebarContainerView: View {
|
|
|
|
@Environment(\.undoManager) var undoManager
|
|
@EnvironmentObject private var sceneModel: SceneModel
|
|
|
|
@ViewBuilder var body: some View {
|
|
SidebarView()
|
|
.modifier(SidebarToolbarModifier())
|
|
.modifier(SidebarListStyleModifier())
|
|
.environmentObject(sceneModel.sidebarModel)
|
|
.onAppear {
|
|
sceneModel.sidebarModel.undoManager = undoManager
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
struct SidebarContainerView_Previews: PreviewProvider {
|
|
static var previews: some View {
|
|
SidebarContainerView()
|
|
.environmentObject(SceneModel())
|
|
}
|
|
}
|