Relationship

public struct Relationship : Codable

Relationship metadata on if/how ot visualzie them in a class diagram

  • memberwise initializer

    Declaration

    Swift

    public init(label: String? = nil, style: RelationshipStyle? = nil, exclude: [String]? = nil)
  • Label shown next to relationship arrow

    Declaration

    Swift

    public var label: String?
  • style information for relation (linking or arrow) and its label

    Declaration

    Swift

    public var style: RelationshipStyle?
  • exclude relationships (of this kind) for given names (wildcard support with *)

    Example to exclude relationships in which entities inherit from Codable

    let relationshipOptions = RelationshipOptions(inheritance: Relationship(exclude: ["Codable"]))
    

    Declaration

    Swift

    public var exclude: [String]?