mirror of
https://github.com/yattee/yattee.git
synced 2024-12-22 21:43:41 +00:00
Fix build issues
This commit is contained in:
parent
5323d53f9e
commit
4097d11b5e
@ -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 } }
|
||||||
|
Loading…
Reference in New Issue
Block a user