Refactor sidebar styling to remove duplicate code

This commit is contained in:
Maurice Parker
2020-07-06 01:32:43 -05:00
parent bcbb38c120
commit 6695fcfca7
6 changed files with 87 additions and 60 deletions

View File

@@ -17,15 +17,10 @@ struct SceneNavigationView: View {
var body: some View {
NavigationView {
#if os(macOS)
RegularSidebarContainerView()
SidebarContainerView()
.frame(minWidth: 100, idealWidth: 150, maxHeight: .infinity)
#else
if horizontalSizeClass == .compact {
CompactSidebarContainerView()
} else {
RegularSidebarContainerView()
}
SidebarContainerView()
#endif
#if os(iOS)