mirror of
https://github.com/yattee/yattee.git
synced 2026-05-13 10:55:03 +00:00
Show video title and channel in tvOS sidebar Now Playing
This commit is contained in:
@@ -640,7 +640,8 @@ struct UnifiedTabView: View {
|
||||
@TabContentBuilder<SidebarItem>
|
||||
private var mainTabs: some TabContent<SidebarItem> {
|
||||
// Now Playing (only shown when video is playing and player collapsed)
|
||||
if shouldShowNowPlaying {
|
||||
if shouldShowNowPlaying,
|
||||
let currentVideo = appEnvironment?.playerService.state.currentVideo {
|
||||
Tab(value: SidebarItem.nowPlaying) {
|
||||
Color.clear
|
||||
.onAppear {
|
||||
@@ -649,7 +650,7 @@ struct UnifiedTabView: View {
|
||||
selection = .home
|
||||
}
|
||||
} label: {
|
||||
Label(SidebarItem.nowPlaying.title, systemImage: SidebarItem.nowPlaying.systemImage)
|
||||
Label("\(currentVideo.title)\n\(currentVideo.author.name)", systemImage: SidebarItem.nowPlaying.systemImage)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user