ClassDiagramGenerator
public struct ClassDiagramGenerator
UML Class Diagram powered by PlantUML
-
default initializer
Declaration
Swift
public init()
-
generate diagram from Swift file(s)
Declaration
Swift
public func generate(for paths: [String], with configuration: Configuration = .default, presentedBy presenter: PlantUMLPresenting = PlantUMLBrowserPresenter(), sdkPath: String? = nil)
Parameters
paths
representing paths to Swift source code files on the file system
configuration
options to influence the generation and visual representation of the class diagram
presenter
outputs the PlantUMLScript / Digram e.g.
PlantUMLBrowserPresenter
orPlantUMLConsolePresenter
sdkPath
MacOSX SDK path used to handle type inference resolution
-
generate diagram from a String containing Swift code
Declaration
Swift
public func generate(from content: String, with configuration: Configuration = .default, presentedBy presenter: PlantUMLPresenting = PlantUMLBrowserPresenter())
Parameters
content
representing a string containing Swift code
presenter
outputs the PlantUMLScript / Digram e.g.
PlantUMLBrowserPresenter
orPlantUMLConsolePresenter