This is why I think layout is by far the biggest problem of #SwiftUI. Why is the second column of the grid changing width because of what is in the first!?

Multi-line labels on macOS SwiftUI always seem to layout in a completely arbitrary way.

And that Color.clear.gridCellUnsizedAxes thing is the recommended way, per the documentation, of creating an empty cell (which is in itself questionable, it seems there should be a GridEmptyCell() view that does the right thing). #SwiftUWhy #macdev

Why are SwiftUI PreferenceKeys called… *Preference* keys? Pretty sure they could come up with a name that doesn't confuse anyone who has used Mac computers for more than 2 years. #SwiftUWhy
ShareLink(item: "Some Text“) on macOS never shows the „Copy…“ option, only app extensions
#SwiftUWhy

Fun SwiftUI cut and paste whoops - with the error that tells you immediately what's wrong 🙄 Seems like a duplicate declaration error would make more sense ¯\_(ツ)_/¯

#SwiftUWhy #xcode #swiftui

Xcode should track the lifetime number of hours spent trying to find the error in your SwiftUI view code that is causing the “compiler is unable to type-check this expression in reasonable time” message to appear after the obligatory a 60-second wait. #SwiftUWhy
Why can't I stop focus rings from being drawn around my Toggle() checkboxes? It laughs at my .focusEffectDisabled(true), with all other combinations of related modifiers that I've tried. #SwiftUWhy
@siracusa #SwiftUWhy is a great hashtag.

Why can’t I find a simple way to do this?

.textSelection(allowSelection ? .enabled : .disabled)

This code does not compile because the types don't match. Fine. But there should be a simple way to do this.

(This is why I never delete the dreaded .if(…) view modifier from my projects…)

#SwiftUWhy

ScrollView on macOS includes default support for swipe gestures and mouse scroll wheels, but not page up/down, home/end, or arrow keys? #SwiftUWhy
The best workaround so far is from @Orlando: just don't use Picker at all. https://iosdev.space/@Orlando/113731727963783200 #SwiftUWhy
Orlando Gabriel Herrera, SOC (@[email protected])

Attached: 1 image @[email protected] Ah, I see. Here’s another tack, with other tradeoffs and undesirable attributes!

iOS Dev Space