mirror of
https://github.com/yattee/yattee.git
synced 2024-12-15 14:50:32 +05:30
26 lines
620 B
Swift
26 lines
620 B
Swift
|
import Defaults
|
||
|
import SwiftUI
|
||
|
|
||
|
struct PlaybackSettingsView: View {
|
||
|
@Default(.quality) private var quality
|
||
|
|
||
|
var body: some View {
|
||
|
Section(header: Text("Quality")) {
|
||
|
Picker("Quality", selection: $quality) {
|
||
|
ForEach(Stream.ResolutionSetting.allCases, id: \.self) { resolution in
|
||
|
Text(resolution.description).tag(resolution)
|
||
|
}
|
||
|
}
|
||
|
.labelsHidden()
|
||
|
|
||
|
#if os(iOS)
|
||
|
.pickerStyle(.automatic)
|
||
|
#endif
|
||
|
|
||
|
#if os(macOS)
|
||
|
Spacer()
|
||
|
#endif
|
||
|
}
|
||
|
}
|
||
|
}
|