DefaultPickerStyle.swift 544 B

123456789101112131415
  1. /// The default picker style that adapts to the current platform and context.
  2. public struct DefaultPickerStyle: PickerStyle, _BuiltinPickerStyle {
  3. public nonisolated init() {}
  4. public func _asBackendPickerStyle<Backend: BaseAppBackend>(backend: Backend)
  5. -> BackendPickerStyle
  6. {
  7. backend.defaultPickerStyle
  8. }
  9. }
  10. extension PickerStyle where Self == DefaultPickerStyle {
  11. /// The default picker style that adapts to the current platform and context.
  12. public static nonisolated var automatic: Self { Self() }
  13. }