How can I show a brief description of a function while typing like the image show below? I've tried many different options all have failed.
Option + click works but that's not what I'm looking for.
Option 1
/// Testing...
/// - returns: false
func testing()->Bool{
return false
}
Option 2
/**
Testing option two
*/
func testing()->Bool{
return false
}
This issue has been fixed in Xcode 9
I am using Xcode 9.4.1 and I found this...
Parameters picked from function automatically. Place your cursor on the line above the function.
Have you set:
Preferences -> Text Editing -> Suggest completions while typing
It might also help to install the guides and sample code at:
Preferences -> Components -> Documentation Tab -> "Check and Install Now" or the arrow next to guides and sample code to just download it once
If you are looking for the way to document self-created method in swift then this might give you a way out.
Select your function or place the cursor before your function, then click
Save the file, or simply restart the Xcode. Then check the suggestion while calling the respective function. I hope this might help.