You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You can modify the output of this command-line tool to add compositions as PlantUML supports this notation.
@startuml
Foo *-- Bar
@enduml
would result in
But SwiftPlantUML will not auto-generate this for you because I did not implement the composition (or association) detection in Swift code.
This Swift code
publicclass Foo {
private Bar bar = new Bar();
}
would result in the following PlantUML script generated by SwiftPlantUML command-line tool
@startuml
' STYLE START
hide empty members
skinparam shadowing false
' STYLE END
class "Foo" as Foo << (C, DarkSeaGreen) >> {
-Bar()
}
class "Bar" as Bar << (C, DarkSeaGreen) >> {
}
@enduml
And you want
@startuml
' STYLE START
hide empty members
skinparam shadowing false
' STYLE END
class "Foo" as Foo << (C, DarkSeaGreen) >> {
-Bar()
}
class "Bar" as Bar << (C, DarkSeaGreen) >> {
}
Foo *-- Bar
@enduml
Hi @AlexPerathoner, it's not on my short-term list as I am worried about performance & cluttering the diagram. If you wanna take a shot and prepare a PR then I am happy to reviewing it
Is there a option that draws 'Composition' as uml?
The text was updated successfully, but these errors were encountered: