mirror of
https://github.com/yattee/yattee.git
synced 2025-08-09 20:24:06 +00:00
tvOS buttons hint
This commit is contained in:
@@ -1,8 +1,14 @@
|
||||
import SwiftUI
|
||||
|
||||
struct StreamControl: View {
|
||||
@Binding var presentingButtonHintAlert: Bool
|
||||
|
||||
@EnvironmentObject<PlayerModel> private var player
|
||||
|
||||
init(presentingButtonHintAlert: Binding<Bool> = .constant(false)) {
|
||||
_presentingButtonHintAlert = presentingButtonHintAlert
|
||||
}
|
||||
|
||||
var body: some View {
|
||||
Group {
|
||||
#if os(macOS)
|
||||
@@ -47,7 +53,9 @@ struct StreamControl: View {
|
||||
.fixedSize(horizontal: true, vertical: true)
|
||||
.disabled(player.isLoadingAvailableStreams)
|
||||
#else
|
||||
Button {} label: {
|
||||
Button {
|
||||
presentingButtonHintAlert = true
|
||||
} label: {
|
||||
Text(player.streamSelection?.shortQuality ?? "loading")
|
||||
.frame(maxWidth: 320)
|
||||
}
|
||||
|
Reference in New Issue
Block a user