我在XCode 8.2.1中向我的代码添加文档时遇到了问题.
这是我的代码:
/// Test documentation method
///
/// - Parameter string: The input string
/// - Returns: The output bool
func testMethod(string:String) -> Bool {
if string == "YES" {
return true
}
return false
}
Run Code Online (Sandbox Code Playgroud)
文档在快速帮助窗口中按预期显示,但描述未显示在代码自动完成窗口中.
有没有办法让描述显示在自动完成框中,如下图所示:
谢谢.