在快速帮助文档注释中添加指向Swift类的链接?
发布时间:2020-12-14 05:29:55 所属栏目:百科 来源:网络整理
导读:假设我有两个类: /** This class should be used together with [Foo]( ??? ).*/class Bar { func doNothing() {}}/** Description of what Foo does goes here.*/class Foo { func doNothing() {}} 我想在Bar的Xcode快速帮助中创建一个指向Foo或Foo快速帮
假设我有两个类:
/** This class should be used together with [Foo]( ??? ). */ class Bar { func doNothing() {} } /** Description of what Foo does goes here. */ class Foo { func doNothing() {} } 我想在Bar的Xcode快速帮助中创建一个指向Foo或Foo快速帮助的链接.它甚至可能吗?如果是这样,怎么样? 据我所知,通过查看Apple’s docs和more Apple’s docs,链接的[名称](目标)语法不符合要求.
我偶然发现了这个.显然,如果您在反引号中包含的文本恰好是一个类,它将呈现为该类的超链接.
(编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |