Elektrine lite

← Feed

@Cykelero@mas.to

Post #984028

2026-03-12 13:47 UTC

You’d expect Picker to be a straightforward view in SwiftUI; but in Dye, pickers took a baffling amount of coercing to actually look right, and not be absurdly slow. Here’s some perplexing code I had to write! https://pending.design/unreasonable-picker-behavior/

Replies (3)

  • @brzz@mastodon.social 2026-03-12 13:54

    @Cykelero open source package called 'SensiblePicker' when? 😅

    Open ##1459056

  • @jasongregori@hachyderm.io 2026-03-12 14:11

    @Cykelero I liked your post! Is the part that makes the fake picker slow on scroll rasterizing all the images that are all identically sized? What about sizing only the text?

    Open ##1459063

  • @Cykelero Nice write-up! That said, I wonder if this is more about testing how far SwiftUI can be pushed. Would you really go through all these hurdles instead of building this component in AppKit?

    Open ##1459081