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

后端 未结 1 1316
太阳男子
太阳男子 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)
提交回复
热议问题