<!--
{
  "availability" : [
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SwiftUI",
  "identifier" : "/documentation/SwiftUI/View/homeEmbeddedNavigationDestination(for:destination:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI4ViewP14HomeExtensionsE33homeEmbeddedNavigationDestination3for11destinationQrqd__m_qd_0_qd__ctSHRd__AaBRd_0_r0_lF"
  },
  "title" : "homeEmbeddedNavigationDestination(for:destination:)"
}
-->

# homeEmbeddedNavigationDestination(for:destination:)

Drop-in replacement for `.navigationDestination(for:)` for hosted extension content.
Pair with `context.navigator.push(_:title:)` or `NavigationLink(value:)`.

```
@MainActor @preconcurrency func homeEmbeddedNavigationDestination<D, Content>(for data: D.Type, @ContentBuilder destination: @escaping (D) -> Content) -> some View where D : Hashable, Content : View
```

## Discussion

```swift
// On your root view, register how each pushed route builds its view:
MyRootView()
    .homeEmbeddedNavigationDestination(for: Route.self) { route in
        switch route {
        case .schedule: ScheduleView()
        }
    }
```

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)