Swift 代码到类图 [英] Swift code to class diagram

查看:64
本文介绍了Swift 代码到类图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法为swift编程语言生成UML类图?我发现 Mac A&D 工具声称能够扫描 swift 代码并创建类图.并且有视频介绍.https://wn.com/swift_code_to_class_diagram

Is there a way to generate UML Class diagram for swift programming language? I found that the Mac A&D tool claims to be able to scan the swift code and create a class diagram. And there is a video to introduce it. https://wn.com/swift_code_to_class_diagram

不幸的是,它不是免费的.我想知道是否有另一个免费工具可以自动生成类图.你们能帮我吗?提前致谢.

Unfortunately, it is not free. I wonder if there is another free tool to generate class diagram automatically. Could you guys help me? Thanks in advance.

Xcode 的 UML 类图(快速编程)>

推荐答案

我最近找到了一个免费工具,可以让您在这方面有个不错的开始.

I recently found a free tool, that gets you a decent start on this.

看看这个教程 https://martinmitrevski.com/2016/10/12/swift-class-diagrams-and-more/

这里是 github 仓库 https://github.com/yoshimkd/swift-auto-图.

and here is the github repo https://github.com/yoshimkd/swift-auto-diagram.

如果你在 chrome vs firefox 中打开 diagram.html,我发现它是最好的.如果你看到小圆圈,就让它运行直到完成.我的项目需要几分钟时间.

I found its best if you open the diagram.html in chrome vs firefox. And if you see the little circles, just let it run until its finished. It takes a few minutes on my project.

这篇关于Swift 代码到类图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆