8
有没有方法可以将描述添加到Swift 3中关联的enums值?我希望他们能够在符号文档弹出式窗口(选件+点击)显示出来,就像他们在Xcode中8如何将文档添加到Swift的enum关联值中
函数的参数做,这是我的枚举:
enum Result {
/**
Request succeeded.
- Parameters:
- something: Some description.
- otherThing: Other description.
*/
case Success(something: Int, otherThing: Int)
/**
Request failed.
- Parameter error: Error.
*/
case Error(error: Error)
}
我试着用- Parameters:
,但它在枚举中不起作用。