Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

UML class diagrams for Xcode (swift programming)

Tags:

I have created an iOS mobile application. I wanted to know if there is a way to generate UML Class diagram for swift programming language? I have tried Omni Graffle but it keeps saying that the project doesn't contain Objective-C interfaces. And Omni Graffle only does this for objective-c. Please help.

Thanks in advance.

like image 891
Abdul Sacranie Avatar asked Mar 21 '15 18:03

Abdul Sacranie


People also ask

How do I create a class diagram in Xcode?

Creating Classes Diagram There's a handy feature to create class diagrams in Xcode, using Class Model feature. To create a diagram for the whole project, select the project name in the Group & Files panel. Then select Menu->Design->Quick Model->Class Model. You will be asked to save the diagram.

Can I use Visio for UML?

Unified Modeling Language (UML) is a standard way to draw software models, sketch out designs, or document existing designs and systems. Note: If you're using Visio for the web, be aware that UML diagrams are available in Visio Plan 1, but are not available in Visio in Microsoft 365.

What is a class diagram UML?

A class diagram is a UML diagram type that describes a system by visualizing the different types of objects within a system and the kinds of static relationships that exist among them. It also illustrates the operations and attributes of the classes.


1 Answers

I remember looking at this question a while ago and was disappointed that there wasn't any tool like this so I created one myself with the help of a colleague. It's free, it's open source, it's looking for contributors...

https://github.com/yoshimkd/swift-auto-diagram

And here's a tutorial on how to use it (don't worry it's very simple): https://martinmitrevski.com/2016/10/12/swift-class-diagrams-and-more/

Happy diagraming :)

like image 83
Jovan Jovanovski Avatar answered Sep 24 '22 06:09

Jovan Jovanovski