Skip to content

Commit

Permalink
Update examples
Browse files Browse the repository at this point in the history
  • Loading branch information
li3zhen1 committed Jan 7, 2024
1 parent a2933e1 commit 9153f59
Showing 1 changed file with 17 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -97,23 +97,23 @@ struct ContentView: View {
@State var selection: ExampleKind = .classicMiserable

var body: some View {
MyGraph()
// NavigationSplitView {
// List(ExampleKind.list, id:\.self, selection: $selection) { kind in
// Text(kind.description)
// }
// } detail: {
// switch selection {
// case .ring:
// MyRing()
// case .classicMiserable:
// MiserableGraph()
// case .lattice:
// Lattice()
// case .mermaid:
// MermaidVisualization()
// }
// }
// MyGraph()
NavigationSplitView {
List(ExampleKind.list, id:\.self, selection: $selection) { kind in
Text(kind.description)
}
} detail: {
switch selection {
case .ring:
MyRing()
case .classicMiserable:
MiserableGraph()
case .lattice:
Lattice()
case .mermaid:
MermaidVisualization()
}
}
}
}

Expand Down

0 comments on commit 9153f59

Please sign in to comment.