Skip to content

Commit

Permalink
Update Readme
Browse files Browse the repository at this point in the history
  • Loading branch information
li3zhen1 committed Nov 5, 2023
1 parent 1bafb99 commit 772917a
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,13 @@ Source code: [ForceDirectedGraph3D/ContentView.swift](https://github.com/li3zhen

## Usage

### `Grape`
### `Grape` (WIP)

`Grape` provides a SwiftUI view `ForceDirectedGraph`:

> [!IMPORTANT]
> `ForceDirectedGraph` is only a minimal working example. Please refer to the next section to create a more complex view.
```swift
struct ForceDirectedGraphSwiftUIExample: View {
let graphController = ForceDirectedGraph2DController<Int>()
Expand All @@ -96,8 +99,7 @@ struct ForceDirectedGraphSwiftUIExample: View {
}
}
```
> [!NOTE]
> `ForceDirectedGraph` is only a minimal working example. Please refere to the next section if you need a view that really works.



### `ForceSimulation`
Expand Down

0 comments on commit 772917a

Please sign in to comment.