mirror of
https://github.com/yattee/yattee.git
synced 2025-08-09 20:24:06 +00:00
Fix channel links
This commit is contained in:
@@ -6,6 +6,7 @@ struct ChannelLinkView<ChannelLabel: View>: View {
|
||||
let channelLabel: ChannelLabel
|
||||
|
||||
@Environment(\.inChannelView) private var inChannelView
|
||||
@Environment(\.inNavigationView) private var inNavigationView
|
||||
@Environment(\.navigationStyle) private var navigationStyle
|
||||
|
||||
init(
|
||||
@@ -25,7 +26,7 @@ struct ChannelLinkView<ChannelLabel: View>: View {
|
||||
#if os(tvOS)
|
||||
channelLabel
|
||||
#else
|
||||
if navigationStyle == .tab {
|
||||
if navigationStyle == .tab, inNavigationView {
|
||||
channelNavigationLink
|
||||
} else {
|
||||
channelButton
|
||||
|
Reference in New Issue
Block a user