Rename DynamicObjectID -> PersistentID

This commit is contained in:
John Estropia
2026-07-27 15:23:39 +09:00
parent 13093d72d4
commit 16c5bb3e15
23 changed files with 146 additions and 120 deletions
+25 -2
View File
@@ -24,15 +24,18 @@ extension Menu {
if self.horizontalSizeClass == .compact {
NavigationStack {
self.menuList
}
}
else {
NavigationSplitView(
sidebar: {
self.menuList
},
detail: {
Menu.PlaceholderView()
}
)
@@ -48,14 +51,16 @@ extension Menu {
ForEach(Menu.Section.allCases, id: \.self) { section in
SwiftUI.Section(
SwiftUI::Section(
content: {
ForEach(section.routes) { route in
NavigationLink(
destination: {
route.destination
LazyDestination {
route.destination
}
},
label: {
Menu.ItemView(
@@ -78,5 +83,23 @@ extension Menu {
.navigationTitle("CoreStore Demos")
.listStyle(.sidebar)
}
// MARK: - LazyDestination
private struct LazyDestination<Content: View>: View {
init(@ViewBuilder content: @escaping () -> Content) {
self.content = content
}
var body: some View {
self.content()
}
private let content: () -> Content
}
}
}