MarcoEidinger / SwiftPlantUML-Xcode-Extension

Xcode Extension for generating class diagrams from Swift code (powered by PlantUML)
https://github.com/MarcoEidinger/SwiftPlantUML
MIT License
432 stars 23 forks source link

Multiple swift files #3

Closed Axort closed 3 years ago

Axort commented 3 years ago

Is it possible to select multiple swift files and generate a diagram for all those files? Works like a charm for one file...

MarcoEidinger commented 3 years ago

Nearly all Xcode Source Code Extensions do operate on a single file only. To generate a UML diagram based on multiple source files please use the command-line tool https://github.com/MarcoEidinger/SwiftPlantUML and please make sure to check out its configuration options, e.g.

This will help to focus on the actual interesting stuff. Depending on the number of input files you might end with a large diagram even by filtering out certain entities. Online tools like PlantText do not support large diagrams properly so please check out my recommendations on https://github.com/MarcoEidinger/SwiftPlantUML#large-diagrams as you will still be able to generate large files locally

Axort commented 3 years ago

Thank you, I ended up using the command-line tool, works like a charm! I thought it was possible for Xcode Source Code Extension to operate on multiple files, hope it's possible in the future.