Xcode version : 10.2
Problem : Auto-complete inside closures not working consistently.
I am having a some issues with auto-complete in Xcode 10.2. Mostly for code completion inside closures. While code completion used to work well, before 10.2, it will now stop working inside closures if the expected return type (or something else) isn't correct.
Instead I get the following in the completion window when I had the "." after an object :
_ self
So for example, if I change the expected return type outside of the closure (say I am refactoring some of the code) and try to rework the code inside of the closure, I don't get code completion anymore (apart from the useless "_ self") for the objects inside the closure.
However (after guessing at the properties or methods, etc.) once I get the inside of the closure to return the expected type, it will work again -- which is somewhat useless at this point.
Another way to work around this is to start writing the closure from scratch again (😠).
This is very annoying and a major departure from previous behavior. Anyone else experiencing this ?