RadioGroupPickerStyle.swift 652 B

12345678910111213141516171819
  1. /// A picker style that presents the options as a group of radio buttons.
  2. ///
  3. /// Only supported by AppKitBackend and WinUIBackend.
  4. public struct RadioGroupPickerStyle: PickerStyle, _BuiltinPickerStyle {
  5. public nonisolated init() {}
  6. public func _asBackendPickerStyle<Backend: BaseAppBackend>(backend: Backend)
  7. -> BackendPickerStyle
  8. {
  9. .radioGroup
  10. }
  11. }
  12. extension PickerStyle where Self == RadioGroupPickerStyle {
  13. /// A picker style that presents the options as a group of radio buttons.
  14. ///
  15. /// Only supported by AppKitBackend and WinUIBackend.
  16. public static nonisolated var radioGroup: Self { Self() }
  17. }