3 ms·
> Which should autocomplete/hint while writing code It does not. Parameter types and alternate parameter names are ignored by Xcode autocomplete. If you want
by thought_alarm 5y ago
> Which should autocomplete/hint while writing code
It does not. Parameter types and alternate parameter names are ignored by Xcode autocomplete.
If you want to use init(from:), you have to already know that it exists and does something good. Typically, you only find a method like that by looking at the Obj-C header. And that method is declared in the NSPasteboard header, not NSURL.
- Someone 5y agoSo, the problem is not the naming, but autocomplete in Xcode? Or is it impossible to write a good auto-completer for Swift because Swift is rather unique in splitting function names into multiple strings? IIRC, Xcode uses LSP; is that a bottle-neck?