Learn Courses My Dashboard

EnvironmentObject / ContentModel makes autocomplete break/super slow?

Hi Code Crew!

Not sure if its my setup, or if I’m doing something wrong, but - following along with the SwiftUI course, when using the environment objects combined with content models, I find that auto complete becomes so slow its virtually unusable. Quitting/restarting Xcode makes no different.

Not sure if this is to do with populating the content model via an api call, or something else?

For reference, I’m on an M1 MacBook Pro.

This could be an issue with Xcode. It still is struggling with code completion and SwiftUI

You could try rebooting your computer

Also try downloaded “DevCleaner for Mac” from the Mac App Store, it helps clear out Xcode logs, this may help too