mirror of
https://github.com/yattee/yattee.git
synced 2025-12-03 22:58:16 +00:00
Minor naming improvements
This commit is contained in:
27
Shared/Settings/PlaybackSettings.swift
Normal file
27
Shared/Settings/PlaybackSettings.swift
Normal file
@@ -0,0 +1,27 @@
|
||||
import Defaults
|
||||
import SwiftUI
|
||||
|
||||
struct PlaybackSettings: 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)
|
||||
#elseif os(tvOS)
|
||||
.pickerStyle(.inline)
|
||||
#endif
|
||||
|
||||
#if os(macOS)
|
||||
Spacer()
|
||||
#endif
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user