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
pathsrepresenting paths to Swift source code files on the file system
configurationoptions to influence the generation and visual representation of the class diagram
presenteroutputs the PlantUMLScript / Digram e.g.
PlantUMLBrowserPresenterorPlantUMLConsolePresentersdkPathMacOSX 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
contentrepresenting a string containing Swift code
presenteroutputs the PlantUMLScript / Digram e.g.
PlantUMLBrowserPresenterorPlantUMLConsolePresenter
ClassDiagramGenerator Structure Reference