Add Welcome screen

This commit is contained in:
Arkadiusz Fal
2021-10-18 01:06:00 +02:00
parent 0d1eaaca5c
commit ec395ff2e0
16 changed files with 187 additions and 42 deletions

View File

@@ -7,14 +7,16 @@ struct Sidebar: View {
var body: some View {
ScrollViewReader { scrollView in
List {
mainNavigationLinks
if !accounts.isEmpty {
mainNavigationLinks
AppSidebarRecents()
.id("recentlyOpened")
AppSidebarRecents()
.id("recentlyOpened")
if accounts.signedIn {
AppSidebarSubscriptions()
AppSidebarPlaylists()
if accounts.signedIn {
AppSidebarSubscriptions()
AppSidebarPlaylists()
}
}
}
.onChange(of: navigation.sidebarSectionChanged) { _ in