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
=> More informations about this toot | More toots from davidbures@mstdn.social
@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
@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
@melgu It probably would, I'll test it out later
=> More informations about this toot | More toots from davidbures@mstdn.social
@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
@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
@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 This content has been proxied by September (3851b).Proxy Information
text/gemini