swift-cross-ui icon indicating copy to clipboard operation
swift-cross-ui copied to clipboard

Update UIKitBackend Picker implementation to match .menu style

Open stackotter opened this issue 7 months ago • 1 comments

Currently UIKitBackend's Picker implementation produces pickers that look like so:

Image

This style of picker doesn't act anything like the pickers rendered by other backends and makes it tricky to build layouts that work on both desktop platforms and iOS. For this reason, I believe that we should match our picker style to SwiftUI's default .menu picker style:

Image

See Sarunw's picker style article to see what the other available picker styles look like.

The current UIKitBackend Picker implementation uses UIPickerView which is explicitly only for wheel-style pickers. We'll probably have to try to replicate SwiftUI's .menu picker style with something similar to our Menu button implementation.

stackotter avatar May 21 '25 03:05 stackotter