Fix build issues

This commit is contained in:
Arkadiusz Fal 2024-06-13 19:11:15 +02:00
parent 5323d53f9e
commit 4097d11b5e

View File

@ -29,8 +29,10 @@ struct FeedView: View {
} }
@State private var selectedChannel: Channel? @State private var selectedChannel: Channel?
#if os(tvOS)
@FocusState private var focusedChannel: String? @FocusState private var focusedChannel: String?
@State private var feedChannelsViewVisible: Bool = false #endif
@State private var feedChannelsViewVisible = false
private var navigation = NavigationModel.shared private var navigation = NavigationModel.shared
private let dismiss_channel_list_id = "dismiss_channel_list_id" private let dismiss_channel_list_id = "dismiss_channel_list_id"
@ -75,6 +77,7 @@ struct FeedView: View {
#endif #endif
} }
#if os(tvOS)
var feedChannelsView: some View { var feedChannelsView: some View {
ScrollViewReader { proxy in ScrollViewReader { proxy in
VStack { VStack {
@ -153,12 +156,11 @@ struct FeedView: View {
self.feedChannelsViewVisible = false self.feedChannelsViewVisible = false
} }
} }
} else {
// Fallback on earlier versions
} }
} }
} }
} }
#endif
var selectedFeedView: some View { var selectedFeedView: some View {
VerticalCells(items: videos) { if shouldDisplayHeader { header } } VerticalCells(items: videos) { if shouldDisplayHeader { header } }