InteractGraph: A weak Graph tool.
InteractGraph is currently undergoing rapid iteration and the public APIs are not guaranteed to be stable.
- filter
- label
- long label
- border color
- dashed border
- shape: ellipse, rectangle, roundedRectangle
- directed
- color
- dashed
Prepared graph.
import InteractGraph
var graph: Graph {
let node0 = Node(label: "0x0: TheBeginningOfEverything")
...
let node42 = Node(label: "0x42: TheAnswerToEverything")
let edge0 = Edge(from: node0, to: node42)
...
let edge42 = Edge(from: node42, to: node0)
return Graph(nodes: [node0, ..., node42], edges: [edge0, ..., edge42])
}Then bring InteractGraphView to your view
import SwiftUI
import InteractGraph
struct ContentView: View {
var graph: Graph { ... }
var body: some View {
InteractGraphView(graph: graph)
}
}- iOS 15.0+
- macOS 12.0+
- Optimize graph layering algorithm. (It's longest-path now)
- More Node's and Edge's Attribute support.
- JSON Graph data import.
- Graph data dynamic record.
- Accessibility.
- Tests
GitHub sponsors is not supported my region yep.
