Swift-DocC was already architected to support a generic format for describing APIs: the symbol graph. It doesn't connect directly to the Swift compiler - it just reads in these files. Symbol graphs, as a format, were also intended to be fairly language-agnostic to begin with; part of the trick is getting them in the first place. There are currently some Swift-specific assumptions in how to lay out and structure docs, so getting Objective-C into the system will work to break those up and support anything that can generate a symbol graph.
7 Likes