<!--
{
  "availability" : [
    "iOS: 13.0.0 - 16.0.0",
    "iPadOS: 13.0.0 - 16.0.0",
    "macCatalyst: 13.0.0 - 16.0.0",
    "macOS: 10.15.0 - 13.0.0",
    "tvOS: 13.0.0 - 16.0.0",
    "visionOS: 1.0.0 - 1.0.0",
    "watchOS: 6.0.0 - 9.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "SwiftUI",
  "identifier" : "/documentation/SwiftUI/NavigationLink/init(_:tag:selection:destination:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI14NavigationLinkVA2A4TextVRszrlE_3tag9selection11destinationACyAEq_Gqd___qd_0_AA7BindingVyqd_0_SgGq_yXEtcSyRd__SHRd_0_r0_lufc::OverloadGroup"
  },
  "title" : "init(_:tag:selection:destination:)"
}
-->

# init(_:tag:selection:destination:)

Creates a navigation link that presents a destination view when a bound
selection variable matches a value you provide, using a text label
that the link generates from a title string.

```
@export(implementation) nonisolated init<S, V>(_ title: S, tag: V, selection: Binding<V?>, @ContentBuilder destination: () -> Destination) where S : StringProtocol, V : Hashable
```

## Parameters

`title`

A string for creating a text label.

`tag`

The value of `selection` that causes the link to present
`destination`.

`selection`

A bound variable that causes the link to present
`destination` when `selection` becomes equal to `tag`.

`destination`

A view for the navigation link to present.

---

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)