yattee/Shared/Views/SettingsPickerModifier.swift
2022-08-15 16:34:24 +02:00

17 lines
323 B
Swift

import Foundation
import SwiftUI
struct SettingsPickerModifier: ViewModifier {
func body(content: Content) -> some View {
content
#if os(tvOS)
.pickerStyle(.inline)
#endif
#if os(iOS)
.pickerStyle(.automatic)
#else
.labelsHidden()
#endif
}
}