refactor: Fix macOS standalone application

This commit is contained in:
世界
2026-01-05 01:21:24 +08:00
parent ef1c924c64
commit 59317f3c79
66 changed files with 2799 additions and 585 deletions
@@ -153,3 +153,15 @@ public func FormNavigationLink(@ViewBuilder destination: () -> some View, @ViewB
}, label: label)
#endif
}
#if os(macOS)
public func FormNavigationLink(value: some Hashable, @ViewBuilder label: () -> some View) -> some View {
NavigationLink(value: value, label: label)
}
public extension View {
func formNavigationDestination<D: Hashable>(for data: D.Type, @ViewBuilder destination: @escaping (D) -> some View) -> some View {
navigationDestination(for: data, destination: destination)
}
}
#endif