<!--
{
  "availability" : [
    "iOS: 18.0.0 -",
    "iPadOS: 18.0.0 -",
    "macCatalyst: 18.0.0 -",
    "macOS: 15.0.0 -",
    "tvOS: 18.0.0 -",
    "visionOS: 2.0.0 -",
    "watchOS: 11.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SwiftUI",
  "identifier" : "/documentation/SwiftUI/Tab/init(value:content:label:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI3TabVAASHRzAA4ViewR_AaDR0_rlE5value7content5labelACyxq_q0_Gx_q_yXEq0_yXEtcfc::OverloadGroup"
  },
  "title" : "init(value:content:label:)"
}
-->

# init(value:content:label:)

Creates a new tab with a label that you can use in a tab view.

```
nonisolated init(value: Value, @ContentBuilder content: () -> Content, @ContentBuilder label: () -> Label)
```

## Parameters

`value`

The `selection` value which selects this tab.

`content`

The view content of the tab.

`label`

The label for the tab’s tab item.

---

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)