1
0
mirror of https://github.com/yattee/yattee.git synced 2024-12-13 22:00:31 +05:30

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