From e10e515a2c2739a54ffe51391cb4596e40059d29 Mon Sep 17 00:00:00 2001 From: Zhen Li <45376537+li3zhen1@users.noreply.github.com> Date: Sun, 7 Jan 2024 00:04:56 -0500 Subject: [PATCH] Update README.md --- README.md | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) 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()