Swift code to class diagram

牧云@^-^@ 提交于 2019-12-21 17:00:01

问题


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.

UML class diagrams for Xcode (swift programming)


回答1:


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

Take a look at this tutorial https://martinmitrevski.com/2016/10/12/swift-class-diagrams-and-more/

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

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.



来源:https://stackoverflow.com/questions/43863810/swift-code-to-class-diagram

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!