How to enable return type for methods in Code Completion suggestion?

In suggestion from code completion i don't see what type returns (e.g. String, Void, etc. ) suggested method.


Answered by Claude31 in 642692022
Which Xcode version ?

I tested by typing:
let x = "Hello".upp

in Xcode 11, I get proposals such as:
Code Block
String uppercased()

 -> So the return type (String) is indicated

in Xcode 12, I get in the list
Code Block
uppercased(with:)

and the detail when selecting the item in list
Code Block
uppercased(with locale: Locale?) -> String

So effectively, the return type does not show anymore in the selection menu, but in the detail of the current selection. AFAIK, there is no way to change this
Accepted Answer
Which Xcode version ?

I tested by typing:
let x = "Hello".upp

in Xcode 11, I get proposals such as:
Code Block
String uppercased()

 -> So the return type (String) is indicated

in Xcode 12, I get in the list
Code Block
uppercased(with:)

and the detail when selecting the item in list
Code Block
uppercased(with locale: Locale?) -> String

So effectively, the return type does not show anymore in the selection menu, but in the detail of the current selection. AFAIK, there is no way to change this
I have Xcode 12. That's why.
They removed this in version 12.
Thank you very much for your time to check!
How to enable return type for methods in Code Completion suggestion?
 
 
Q