<!--
{
  "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",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI3TabV"
  },
  "title" : "Tab"
}
-->

# Tab

The content for a tab and the tab’s associated tab item in a tab view.

```
struct Tab<Value, Content, Label>
```

## Topics

### Creating a tab

[`init(content:)`](/documentation/SwiftUI/Tab/init(content:))

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

[`init(value:content:)`](/documentation/SwiftUI/Tab/init(value:content:))

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

[`init(role:content:)`](/documentation/SwiftUI/Tab/init(role:content:))

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

[`init(value:role:content:)`](/documentation/SwiftUI/Tab/init(value:role:content:))

Creates a new tab with a label inferred from the role.

### Creating a tab with label

[`init(content:label:)`](/documentation/SwiftUI/Tab/init(content:label:))

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

[`init(value:content:label:)`](/documentation/SwiftUI/Tab/init(value:content:label:))

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

[`init(role:content:label:)`](/documentation/SwiftUI/Tab/init(role:content:label:))

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

[`init(value:role:content:label:)`](/documentation/SwiftUI/Tab/init(value:role:content:label:))

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

### Creating a tab with system symbol

[`init(_:systemImage:content:)`](/documentation/SwiftUI/Tab/init(_:systemImage:content:))

Creates a new tab that you can use in a tab view using a system image
for the tab item’s image, and a localized string key label.

[`init(_:systemImage:value:content:)`](/documentation/SwiftUI/Tab/init(_:systemImage:value:content:))

Creates a tab that the tab view presents when the tab view’s selection
matches the tab’s value using a system image for the tab’s tab item image,
with a localized string key label.

[`init(_:systemImage:role:content:)`](/documentation/SwiftUI/Tab/init(_:systemImage:role:content:))

Creates a new tab that you can use in a tab view using a system image
for the tab item’s image, and a localized string key label.

[`init(_:systemImage:value:role:content:)`](/documentation/SwiftUI/Tab/init(_:systemImage:value:role:content:))

Creates a tab that the tab view presents when the tab view’s selection
matches the tab’s value using a system image for the tab’s tab item image,
with a localized string key label.

### Creating a tab with image

[`init(_:image:content:)`](/documentation/SwiftUI/Tab/init(_:image:content:))

Creates a new tab that you can use in a tab view, with a localized
string key label.

[`init(_:image:value:content:)`](/documentation/SwiftUI/Tab/init(_:image:value:content:))

Creates a tab that the tab view presents when the tab view’s selection
matches the tab’s value, with a localized string key label.

[`init(_:image:role:content:)`](/documentation/SwiftUI/Tab/init(_:image:role:content:))

Creates a new tab that you can use in a tab view, with a localized
string key label.

[`init(_:image:value:role:content:)`](/documentation/SwiftUI/Tab/init(_:image:value:role:content:))

Creates a tab that the tab view presents when the tab view’s selection
matches the tab’s value, with a localized string key label.

### Supporting types

[`DefaultTabLabel`](/documentation/SwiftUI/DefaultTabLabel)

The default label to use for a tab or tab section.



---

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)