Sidebar toolbar no longer an overlay

Also moved view model to separate file and removed the view prefix.
This commit is contained in:
Stuart Breckenridge
2020-07-04 21:34:15 +08:00
parent c0755fe55b
commit 01a84a2a40
5 changed files with 98 additions and 93 deletions

View File

@@ -17,6 +17,7 @@ struct RegularSidebarContainerView: View {
@ViewBuilder var body: some View {
SidebarView()
.modifier(SidebarToolbar())
.environmentObject(sidebarModel)
.navigationTitle(Text("Feeds"))
.listStyle(SidebarListStyle())
@@ -25,11 +26,6 @@ struct RegularSidebarContainerView: View {
sidebarModel.delegate = sceneModel
sidebarModel.rebuildSidebarItems()
}
.overlay(Group {
#if os(iOS)
SidebarToolbar()
#endif
},alignment: .bottom)
}