36

I just migrated my project to Swift 3 and found that the "See also" callout in the quick help is not showing. Everything was perfectly working in the previous version of Swift. Below is my code:

/**
 Adds a "See also" callout in the Quick Help for a symbol using the `seealso` delimiter. Multiple "See also" callouts appear in the description section in the same order as they do in the markup.

 - author: Tapas Pal

 - remark: Use the callout to add references to other information.

 - seealso: [The Swift Standard Library Reference](https://developer.apple.com/library/prerelease/ios//documentation/General/Reference/SwiftStandardLibraryReference/index.html)
*/
class SeeAlsoMarkup: NSObject {
    static func doSomething() {}
}

The output is as follows:

enter image description here

Did Apple change anything with this markup? Apple's See Also markup formatting reference is still showing seealso as a valid callout.

Adil Hussain
  • 30,049
  • 21
  • 112
  • 147
Tapas Pal
  • 7,073
  • 8
  • 39
  • 86

2 Answers2

8

(XCode 11, Swift 5)

For clarification on this question, it appears that XCode recognizes markdown in documentation comments. If you have something like:

/// # Reference 
/// [Link to Reference](https://www.google.com)

It gets recorded as:

Screen shot of Reference markdown

I don't know that this hooks into the documentation keywords in the same way that @seealso does, because the # markdown tag just refers to a header style. To demonstrate this point, you can add arbitrary sections to your documentation using the # tag:

///  # Reference
///  [Link to Reference](https://www.google.com)
///  # Section
///  This is a new section of documentation
///  # Remark
///  New remark

Gets recorded as:

enter image description here

Louis Tur
  • 1,303
  • 10
  • 16
6

Replace seealso with # Reference.

Quick Help screenshot

Adil Hussain
  • 30,049
  • 21
  • 112
  • 147
Ajay Singh Mehra
  • 1,313
  • 9
  • 19