mirror of
https://github.com/yattee/yattee.git
synced 2024-12-13 22:00:31 +05:30
17 lines
323 B
Swift
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
|
||
|
}
|
||
|
}
|