Add links to Swift classes in the quick help documentation comments?

后端 未结 1 1324
太阳男子
太阳男子 2021-02-08 22:04

Assume I have two classes:

/**
  This class should be used together with [Foo]( ??? ).
*/
class Bar {
    func doNothing() {}
}

/**
  Description of what Foo do         


        
1条回答
  •  终归单人心
    2021-02-08 22:52

    I just stumbled upon this. Apparently, if the text you enclose in backticks happens to be a class, it will be rendered as a hyperlink to the class.

    0 讨论(0)
提交回复
热议问题