Class
SupportedLanguage
A directive that controls what programming languages an article is available in.
final class SupportedLanguage
Discussion
By default, an article is available in the languages the module that’s being documented is available in. Use this directive to override this behavior in a Metadata directive:
@Metadata {
@SupportedLanguage(swift)
@SupportedLanguage(objc)
}
This directive supports any language identifier, but only the following are currently supported by Swift-DocC Render:
| Identifier | Language |
|---|
swift | Swift |
objc, objective-c | Objective-C |
Topics
Instance Properties
Type Properties