I am working on a Swift playground that contains several files in the Sources folder along with the main file. When I type something, such as "UI," in the main file, I get the expected autocomplete suggestions. However, when I do the same in the files in the Sources folder, I get a "dumb" autocomplete menu, as can be seen from this question: Xcode 9 Autocomplete Not Working 100% - partially works
I tried uninstalling DerivedDataas suggested in the above question, and even moved on to the duration of reinstalling Xcode entirely. However, the problem has not disappeared. I created a new playground to make sure that it is not specific to this project, and the same problem arises.
Edit: I just tried the same thing on another Mac, and the same problem was noticed. I assume this is just a bug in Xcode that has nothing to do with this particular installation or project.
source
share