Skip to content

Commit

Permalink
Merge branch 'main' of https://github.com/li3zhen1/Grape
Browse files Browse the repository at this point in the history
  • Loading branch information
li3zhen1 committed Jan 7, 2024
2 parents 5941823 + e10e515 commit e9c2d4a
Showing 1 changed file with 1 addition and 15 deletions.
16 changes: 1 addition & 15 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,32 +86,18 @@ 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.
NodeMark(id: 0).foregroundStyle(.green)
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()
Expand Down

0 comments on commit e9c2d4a

Please sign in to comment.