mirror of
https://github.com/yattee/yattee.git
synced 2024-12-23 05:53:41 +00:00
83dfdd6c0e
Vertical list for trending, popular, playlists, search Fix #413, #415
34 lines
838 B
Swift
34 lines
838 B
Swift
import SwiftUI
|
|
|
|
struct HideShortsButtons: View {
|
|
@Binding var hide: Bool
|
|
|
|
var body: some View {
|
|
Button {
|
|
hide.toggle()
|
|
} label: {
|
|
Group {
|
|
if hide {
|
|
Label("Short videos: hidden", systemImage: "bolt.slash.fill")
|
|
.help("Short videos: hidden")
|
|
} else {
|
|
Label("Short videos: visible", systemImage: "bolt.fill")
|
|
.help("Short videos: visible")
|
|
}
|
|
}
|
|
#if os(tvOS)
|
|
.font(.caption)
|
|
.imageScale(.small)
|
|
#endif
|
|
}
|
|
}
|
|
}
|
|
|
|
struct HideShortsButtons_Previews: PreviewProvider {
|
|
static var previews: some View {
|
|
VStack {
|
|
HideShortsButtons(hide: .constant(true))
|
|
}
|
|
}
|
|
}
|