Ancestors

Toot

Written by David Bureš on 2025-01-26 at 14:01

Another absolute Xcode banger

The error is reported up there, regarding the .toolbar modifier.

The actual error is a missing argument in the synchronizeInstalledPackages function.

[#]swift #SwiftUI #macdev

=> View attached media

=> More informations about this toot | More toots from davidbures@mstdn.social

Descendants

Written by Kubi Lai on 2025-01-26 at 15:00

@davidbures There are times when I had to disable pieces of code to find where the real trouble is because it clearly you wasn’t on the red line :( This wasn’t a thing in the past…

=> More informations about this toot | More toots from iosswift@mastodon.social

Written by Melvin Gundlach on 2025-01-26 at 16:23

@davidbures Does the error location and helpfulness get better when moving the different cases into their own variables or functions? I suppose moving them into their own views definitely would.

=> More informations about this toot | More toots from melgu@norden.social

Written by David Bureš on 2025-01-26 at 18:38

@melgu It probably would, I'll test it out later

=> More informations about this toot | More toots from davidbures@mstdn.social

Written by Matt Massicotte on 2025-01-26 at 19:49

@davidbures The single most effective way to deal with these kinds of problems is to minimize code in view bodies and/or use smaller views.

=> More informations about this toot | More toots from mattiem@mastodon.social

Written by Rick on 2025-01-26 at 20:27

@mattiem @davidbures The Swift compiler is very poor in this regard. I run into this all the time with window-sized or smaller views (where the code fits in my Xcode window).

=> More informations about this toot | More toots from JetForMe@geekstodon.com

Written by Matt Massicotte on 2025-01-27 at 12:12

@JetForMe @davidbures yeah ResultBuilders may never overcome this problem. But large view bodies makes it much more likely to happen, and much harder to understand when it does.

=> More informations about this toot | More toots from mattiem@mastodon.social

Proxy Information
Original URL
gemini://mastogem.picasoft.net/thread/113895020125371728
Status Code
Success (20)
Meta
text/gemini
Capsule Response Time
304.795617 milliseconds
Gemini-to-HTML Time
1.493331 milliseconds

This content has been proxied by September (3851b).