Subscribe/unsubscribe channels

This commit is contained in:
Arkadiusz Fal
2021-08-26 00:12:59 +02:00
parent 151121aa31
commit 1196a2a5e2
14 changed files with 218 additions and 70 deletions

View File

@@ -49,7 +49,7 @@ struct AppSidebarNavigation: View {
SubscriptionsView()
}
label: {
Label("Subscriptions", systemImage: "play.rectangle.fill")
Label("Subscriptions", systemImage: "star.circle.fill")
.accessibility(label: Text("Subscriptions"))
}

View File

@@ -10,7 +10,7 @@ struct AppTabNavigation: View {
SubscriptionsView()
}
.tabItem {
Label("Subscriptions", systemImage: "play.rectangle.fill")
Label("Subscriptions", systemImage: "star.circle.fill")
.accessibility(label: Text("Subscriptions"))
}
.tag(TabSelection.subscriptions)

View File

@@ -4,6 +4,7 @@ struct ContentView: View {
@StateObject private var navigationState = NavigationState()
@StateObject private var playbackState = PlaybackState()
@StateObject private var searchState = SearchState()
@StateObject private var subscriptions = Subscriptions()
#if os(iOS)
@Environment(\.horizontalSizeClass) private var horizontalSizeClass
@@ -40,6 +41,7 @@ struct ContentView: View {
.environmentObject(navigationState)
.environmentObject(playbackState)
.environmentObject(searchState)
.environmentObject(subscriptions)
}
}