yattee/Shared/Views/SettingsPickerModifier.swift

17 lines
323 B
Swift
Raw Normal View History

2022-08-06 14:28:05 +00:00
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
}
}