7

我目前正在构建用 Objective-C 编写的 iOS SDK。现在我已经测试并准备好了 SDK,希望结合 Swift 和 Objective-C 向其中添加文档。我一直致力于以下文档生成器工具

一个。多氧

湾。苹果文档

C。爵士乐

d。苹果的 HeaderDoc。

我想使用我的 Objective-C 头文件中的注释并为 Objective C 和 Swift 生成组合帮助,类似于Apple最近的做法。我的问题是如何从 Objective-C 标头生成 Swift 和 Objective-C 的文档?

以下是基于我的研究的一些链接:

谢谢,

内存。

请在此处参考苹果文档:

图片

4

1 回答 1

2

Maybe not (yet) exactly what you are looking for, but you can use Swiftify (https://objectivec2swift.com/) service to convert declarations from Objective-C to Swift.

Furthermore, if above documentation tools allow to develop any sort of a plugin to integrate with, it should be possible to automatically generate Swift sources using our Web API.

We may be willing to develop such an integration if there will be a demand for it.

Disclaimer: I am the author of Swiftify :)

于 2015-12-03T10:40:03.793 回答