mirror of
https://github.com/yattee/yattee.git
synced 2025-08-09 20:24:06 +00:00
Fix pickers on iOS 16
This commit is contained in:
16
Shared/Views/SettingsPickerModifier.swift
Normal file
16
Shared/Views/SettingsPickerModifier.swift
Normal file
@@ -0,0 +1,16 @@
|
||||
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
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user