2
我正在扩展UIColor
,并试图给a description扩展类。Swift类扩展的文档注释
我的代码是
/**
- To store all colors
- Naming Convention identifier: In lowerCamelCase with single name description
- Naming Convention value: single name
- example: self.view.backgroundColor = UIColor.View.NonCompliant
*/
extension UIColor{
/**
- To specify all seperators' color
*/
struct Seperators{
static let commonSeperator = UIColor(red: 53.0/255.0, green: 126.0/255.0, blue: 167.0/255.0, alpha: 1.0)
}
}
但Xcode中仍显示原来的描述,而不是修改的说明。
有谁知道如何做到这一点?
可能你可以看看这些:HeaderDoc&Doxygen,https://www.appcoda.com/documenting-source-code-in-xcode/ –
它仍然显示inbuit只有描述.. – nTri
很确定你不能发布评论扩展。他们是匿名的后果之一。您只能记录扩展名中的内容。 –