How to proceed to adding a link / link to another method in the Xcode documentation?

I am adding some description to my method in the class. Here is how I achieved this:

enter image description here

And it looks when clicked ...

enter image description here

How can I make the underlined method interactive? I want it to be referenced so that when a user clicks on it, they are redirected to a specific web page for documentation.

Is it possible? Thanks in advance, any help would be appreciated

+4
ios xcode swift documentation
source share
3 answers

This link solved my problem

In particular, this is how I talked about it

enter image description here

Thanks to Oleg for the link

+2
source share

Use this

/** * <#Description#> * * @link UILabel <#UILabel description#> * * @return <#return value description#> */ 

Or you can try vvDocumenter for comments

0
source share

You can link to another method by tagging it with // / - Tag: and referencing it with Tag using the x-source-tag://[Tag] scheme as follows:

 /// - Tag: someMethod func someMethod() { ... } /// Make sure to call [someMethod](x-source-tag://someMethod) at some point when overriding. func otherMethod() { ... } 

By clicking on the someMethod link in the Quick Help pop-up window, you will be taken to the method and highlight it in yellow.

0
source share

All Articles