Xcode "suggest completions" not working for modifiers

Chris suggests restarting Xcode and/or rebuilding the project, but this has not worked for me.

The code is colored, so Xcode understands syntax, and will build the code if I type a modifier manually – but does not offer modifier suggestions, even in the inspect panel.

Suggestions do work for views, just not view modifiers.

Here is a 20 second loom screen recording for context.
https://www.loom.com/share/3c74c84ed04d4b13a26c33b54222b3a5

Thank you,
Michael

Welcome to the community @mcgrealife !

To make the menu come back up use Control + Space

But because SwiftUI is so new, it doesn’t always work. Usually closing and opening Xcode fixes it for me

You could also try downloading “Dev Cleaner for Mac” it’s a Mac app that helps you save space because of Xcode. But what it does is delete some build folders too (that can help)

Hey @mikaelacaron, that was quick – thank you!

I realized if I replace Image(r.image) with an SFsymbol like Image(systemName: "pencil"), that the “suggest completions” menu returns (example screen recording). So maybe this is a bug in SwiftUI.

Either way, your tips for Control + Space and the Dev Cleaner have been useful!

Thanks again :slight_smile:

1 Like

Yes SwiftUI is brand new!! It was only released in 2019. It still has a lot of bugs

I’d wondered about this too. Thanks for the tip.
P