diff --git a/README.md b/README.md index a007254..462ea65 100644 --- a/README.md +++ b/README.md @@ -86,19 +86,6 @@ struct MyGraph: View { @State var isRunning = true // start moving once appeared. var body: some View { -<<<<<<< HEAD - ForceDirectedGraph(isRunning: $isRunning) { - - // Declare nodes and links like you would do in Swift Charts. - NodeMark(id: 0, fill: .green) - NodeMark(id: 1, fill: .blue) - NodeMark(id: 2, fill: .yellow) - for i in 0..<2 { - LinkMark(from: i, to: i+1) - } - - } forceField: { -======= ForceDirectedGraph($isRunning) { // Declare nodes and links like you would do in Swift Charts. @@ -106,12 +93,11 @@ struct MyGraph: View { NodeMark(id: 1).foregroundStyle(.blue) NodeMark(id: 2).foregroundStyle(.yellow) - ForEach(Array(0..<2), id:\.self) { i in + Repeated(0..<2) { i in LinkMark(from: i, to: i+1) } } force: { ->>>>>>> main LinkForce() CenterForce() ManyBodyForce()