New channel navigation

This commit is contained in:
Arkadiusz Fal
2022-05-29 20:26:56 +02:00
parent c5af865ffe
commit 0ad350a6b5
8 changed files with 114 additions and 53 deletions

View File

@@ -7,6 +7,7 @@ struct VideoCell: View {
private var video: Video
@Environment(\.navigationStyle) private var navigationStyle
@Environment(\.inChannelView) private var inChannelView
#if os(iOS)
@Environment(\.verticalSizeClass) private var verticalSizeClass
@@ -294,6 +295,10 @@ struct VideoCell: View {
private func channelButton(badge: Bool = true) -> some View {
Button {
guard !inChannelView else {
return
}
NavigationModel.openChannel(
video.channel,
player: player,